LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-25-2004, 03:40 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
gcc can't compile


I been trying to compile some files in gcc (g++) but it's giving me error.

I have 3 files: main.cpp, customer.cpp and customer.h

Input: g++ -c customer.cpp
Output: customer.o

Input: g++ -c main.cpp
Output: main.o

Input: g++ main.o customer.o -o test1
Output: test1

Input: ./test1
Output [Error]: ./test1: /usr/lib/libgcc_s.so.1: version 'GCC-3.3 not found (required by /ysr/local/lib/libstdc++.so.6)

GCC version: 3.4.0 (latest)
OS: Slackware 9.1
kernel: 2.4.22

The program works fine under OpenBSD 3.5 with GCC 2.9!
 
Old 09-25-2004, 10:35 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Re: gcc can't compile

Quote:
Originally posted by noir911
Output [Error]: ./test1: /usr/lib/libgcc_s.so.1: version 'GCC-3.3 not found (required by /ysr/local/lib/libstdc++.so.6)
Sounds like gcc is not installed correctly/completely...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile C++ with GCC phongnh0211k Linux - Software 3 01-13-2005 01:40 AM
Compile with GCC occ Solaris / OpenSolaris 6 10-29-2004 10:19 AM
gcc can't compile zionz Linux - Newbie 2 09-02-2004 11:34 PM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 06:42 PM
Can't compile GCC Mikessu Linux - Software 2 05-05-2004 03:59 PM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration