473,322 Members | 1,540 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,322 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 6215
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.