473,903 Members | 4,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

/usr/bin/ld: cannot find -lCstd

How to fix the following error?

# make
....
g++ -o src/prog ./src/addSrv.o ./src/createClntCert_ main.o ./src/
createSupportFi le.o ./src/deleteSrv.o ./src/replaceSrv.o ./src/
examineClntCert .o ./src/examineClntCert _main.o ./src/listSrvs.o ./src/
registerSrv.o ./src/registerSrv_mai n.o ./src/verify.o ./src/
DynamicLibrary. o -L../../open_ssl_lib/openssl-0.9.7m/out/linux -
L../../util_lib/linux -lUtil -lssl -lcrypto -lCstd -lCrun -lsocket -
lnsl -lposix4 -lm -lw -lc -ldl
/usr/bin/ld: cannot find -lCstd
collect2: ld returned 1 exit status

$ g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
enable-checking=releas e --with-system-zlib --enable-__cxa_atexit --
disable-libunwind-exceptions --enable-libgcj-multifile --enable-
languages=c,c++ ,objc,obj-c++,java,fortra n,ada --enable-java-awt=gtk --
disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-
gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)

$ uname -a
Linux tulip 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686
i686 i386 GNU/Linux
Aug 11 '08 #1
9 4082
On 11 Aug 2008 at 20:35, TsanChung wrote:
How to fix the following error?

/usr/bin/ld: cannot find -lCstd
Put the library file libCstd.a or libCstd.so somewhere the linker can
find it: either a standard system directory, or one you tell it about
using a -L command line option or an environment variable like
LD_LIBRARY_PATH .

I think the library is part of Sun's compiler collection.

Aug 11 '08 #2
TsanChung wrote:
How to fix the following error?
Quite apart from the likelihood that you have a Linux or make problem,
neither of which is topical in comp.lang.c,
g++ -o src/prog ./src/addSrv.o ./src/createClntCert_ main.o ./src/
suggests that you are confused about the programming language you are
using. g++ is a C++ compiler, which compiles a different language from
C, which language is off-topic in comp.lang.c
Aug 11 '08 #3
Antoninus Twink wrote, On 11/08/08 22:00:
On 11 Aug 2008 at 20:35, TsanChung wrote:
>How to fix the following error?

/usr/bin/ld: cannot find -lCstd

Put the library file libCstd.a or libCstd.so somewhere the linker can
find it: either a standard system directory, or one you tell it about
using a -L command line option or an environment variable like
LD_LIBRARY_PATH .

I think the library is part of Sun's compiler collection.
Hmm. I wonder what Sun's compiler collection has to do with using gcc on
Linux (which the OP was doing based on the the information snipped by
Antoninus Twink).

To the OP, g++ is a C++ compiler not a C compiler so this has nothing to
do with C. It would probably not be topical on comp.lang.c++ either. I
suggest either a Linux group, a GNU group, or somewhere dealing with the
specific application you are trying to build. Where ever you post you
will need to provide more information.
--
Flash Gordon
Aug 11 '08 #4
On 11 Aug 2008 at 21:31, Flash Gordon wrote:
Antoninus Twink wrote, On 11/08/08 22:00:
>On 11 Aug 2008 at 20:35, TsanChung wrote:
>>/usr/bin/ld: cannot find -lCstd

I think the library is part of Sun's compiler collection.

Hmm. I wonder what Sun's compiler collection has to do with using gcc on
Linux (which the OP was doing based on the the information snipped by
Antoninus Twink).
A very pertinent question.

It's quite likely that the OP is trying to use a Makefile intended for
something like Slowlaris on Linux and running into problems - e.g.
because the configure script was run on a different machine to the one
he's compiling on.
To the OP, g++ is a C++ compiler not a C compiler so this has nothing
to do with C.
g++ will compile a large percentage of C programs without any problems,
and quite possibly produce valuable extra diagnostics that a C compiler
wouldn't. (Yes, yes, we all know that the clc "regulars" can cook up
contrived examples where the semantics are subtly different.)

Aug 11 '08 #5
Antoninus Twink wrote, On 11/08/08 23:12:
On 11 Aug 2008 at 21:31, Flash Gordon wrote:
>Antoninus Twink wrote, On 11/08/08 22:00:
>>On 11 Aug 2008 at 20:35, TsanChung wrote:
/usr/bin/ld: cannot find -lCstd
I think the library is part of Sun's compiler collection.
Hmm. I wonder what Sun's compiler collection has to do with using gcc on
Linux (which the OP was doing based on the the information snipped by
Antoninus Twink).

A very pertinent question.
<snip>

The pertinent part being that it makes your advise almost certainly the
wrong thing to do. Again.
>To the OP, g++ is a C++ compiler not a C compiler so this has nothing
to do with C.

g++ will compile a large percentage of C programs without any problems,
and quite possibly produce valuable extra diagnostics that a C compiler
wouldn't. (Yes, yes, we all know that the clc "regulars" can cook up
contrived examples where the semantics are subtly different.)
It is used far more to compile C++ code that is radically different.
With a provided make-file it almost certainly means that the code was
written as C++ not as C. Are you now claiming that C++ is topical here?
--
Flash Gordon
Aug 12 '08 #6
Flash Gordon <sp**@flash-gordon.me.ukwro te:
Antoninus Twink wrote, On 11/08/08 23:12:
On 11 Aug 2008 at 21:31, Flash Gordon wrote:
Antoninus Twink wrote, On 11/08/08 22:00:
On 11 Aug 2008 at 20:35, TsanChung wrote:
/usr/bin/ld: cannot find -lCstd
I think the library is part of Sun's compiler collection.
Hmm. I wonder what Sun's compiler collection has to do with using gcc on
Linux (which the OP was doing based on the the information snipped by
Antoninus Twink).
A very pertinent question.

<snip>

The pertinent part being that it makes your advise almost certainly the
wrong thing to do. Again.
The most pertinent part being that it illustrates something, not so much
about Mr. Twink (who needs no illumination), but about why it is a bad
idea to answer off-topic questions here in general.

Richard
Aug 15 '08 #7
Greetings.

In article <sl************ *******@nospam. invalid>, Antoninus Twink wrote:
g++ will compile a large percentage of C programs without any problems,
Given that there are infinitely many possible C programs, how can you make
any meaningful claim about the percentage of them that any particular
compiler can compile?

Regards,
Tristan

--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= < In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you
Aug 15 '08 #8
Tristan Miller wrote:
Antoninus Twink wrote:
>g++ will compile a large percentage of C programs without any
problems,

Given that there are infinitely many possible C programs, how can
you make any meaningful claim about the percentage of them that
any particular compiler can compile?
--
+-------------------+ .:\:\:/:/:.
| PLEASE DO NOT F :.:\:\:/:/:.:
| FEED THE TROLLS | :=.' - - '.=:
| | '=(\ 9 9 /)='
| Thank you, | ( (_) )
| Management | /`-vvv-'\
+-------------------+ / \
| | @@@ / /|,,,,,|\ \
| | @@@ /_// /^\ \\_\
@x@@x@ | | |/ WW( ( ) )WW
\||||/ | | \| __\,,\ /,,/__
\||/ | | | jgs (______Y______)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
=============== =============== =============== =============== ==

fix (vb.): 1. to paper over, obscure, hide from public view; 2.
to work around, in a way that produces unintended consequences
that are worse than the original problem. Usage: "Windows ME
fixes many of the shortcomings of Windows 98 SE". - Hutchinson
Aug 15 '08 #9
In article <50************ ****@sable.noth ingisreal.com>,
Tristan Miller <ps********@not hingisreal.comw rote:
>g++ will compile a large percentage of C programs without any problems,
>Given that there are infinitely many possible C programs, how can you make
any meaningful claim about the percentage of them that any particular
compiler can compile?
He didn't say a large percentage of possible C programs.

-- Richard
--
Please remember to mention me / in tapes you leave behind.
Aug 15 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5491
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
10
4484
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
0
3129
by: SampathTangudu | last post by:
Hi, We are trying to use the Hash Tables for passing information from one aspx page to another aspx page. We are using the below code. IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User | IsolatedStorageScope.Assembly |IsolatedStorageScope.Domain , null, null );
1
6651
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005 Express Edition x86: Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. ***EndOfSession***? Microsoft SQL Server 2005 Express Edition x86: Component Microsoft SQL Server 2005 Express Edition x86 returned an...
3
16536
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or something in PHP that I don't have? Do I need to install more Linux packages? Or adjust PHP in some way?
2
7053
by: mudge | last post by:
Hi, I'm getting some very strange problems with some C# code. We're running an ASP.NET application on a local server in a DMZ. If I access it using the internal address, the application works fine, every time. But, if I access on it's public IP, from my office workstation, from home, over the VPN, a test machine on ADSL, or whatever else you please, it fails. But only about 60% of the time. I have tried everything to pin this down....
1
4936
by: Shiva48 | last post by:
Thanks to Gannon11 and ro351988- Moderator. I give below the complete Java file and pls help me to rectify the errors. package com.wrox.proj2ee.ch10.app; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import com.wrox.proj2ee.ch12.*// The requesthandlers interface in this package. public class ShowRecordRequesthandler implements RequestHandler
0
3401
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate your help! --------------------------------------------------------------------------------------------------------------- Hi, I've created a scheduler job with FORFILES command to delete files
2
6671
by: karinmorena | last post by:
I'm having 4 errors, I'm very new at this and I would appreciate your input. The error I get is: Week5MortgageGUI.java:151:cannot find symbol symbol: method allInterest(double,double,double) Location: class Week5MortgageGUI Week5MortgageLogic allint = logic.allInterest(amount, term, rate); Week5MortgageGUI.java:152:cannot find symbol symbol: method allInterest(double,double,double) Location: class Week5MortgageGUI
10
13121
by: CodeNoob | last post by:
please help been working on a project got it down to 5 errors from 100 now i have no idea what to do. Errors: init: deps-jar: Created dir: C:\Users\Tommy\Desktop\build\classes Compiling 306 source files to C:\Users\Tommy\Desktop\build\classes C:\Users\Tommy\Desktop\PlasmaMS PET\SeanSource V.5.7\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:14: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API...
0
9852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11292
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10882
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10989
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7214
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6099
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4313
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3327
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.