473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

cannot find -lstdc++

Hi

I have been trying to compile a program and keep getting this error

gcc -g -Wall -c filecopy.c
g++ -static -g -o assess mark.o mark1.o mark2.o mark3.o mark4.o
mark5.o mark5a.o mark5b.o mark5c.o mark5d.o mark6.o markio.o mark7.o
markutil.o markclas.o rportptr.o strupr.o scrnpagr.o scrnform.o
markver.o markform.o date.o filecopy.o -lncurses
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [assess] Error 1
[lgm@buzz src]$

any help would be great.

Thanks Adam
Jul 22 '05 #1
2 6218
Adam wrote:
I have been trying to compile a program and keep getting this error

gcc -g -Wall -c filecopy.c
g++ -static -g -o assess mark.o mark1.o mark2.o mark3.o mark4.o
mark5.o mark5a.o mark5b.o mark5c.o mark5d.o mark6.o markio.o mark7.o
markutil.o markclas.o rportptr.o strupr.o scrnpagr.o scrnform.o
markver.o markform.o date.o filecopy.o -lncurses
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [assess] Error 1
[lgm@buzz src]$

any help would be great.


On my system, libstdc++.a is right there in /usr/lib/. Maybe your
installation is faulty. This newsgroup discusses the C++ language.
It's not the most suitable place for your question. See the FAQ
and welcome message.

--
Regards,
Buster.
Jul 22 '05 #2
Adam wrote:
Hi

I have been trying to compile a program and keep getting this error

gcc -g -Wall -c filecopy.c
g++ -static -g -o assess mark.o mark1.o mark2.o mark3.o mark4.o
mark5.o mark5a.o mark5b.o mark5c.o mark5d.o mark6.o markio.o mark7.o
markutil.o markclas.o rportptr.o strupr.o scrnpagr.o scrnform.o
markver.o markform.o date.o filecopy.o -lncurses
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [assess] Error 1
[lgm@buzz src]$

You shouldn't need to. The problem I see is that you are compiling with
gcc and linking with g++. Try being consistent (if using c++, use g++,
C, gcc)

JLR
Jul 22 '05 #3

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

Similar topics

8
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 -------------------------------------------------------------------------------- ...
10
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...
0
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 =...
1
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...
3
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...
2
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...
1
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...
0
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...
2
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)...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.