Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 09-25-2004, 03:40 AM   #1
Registered: Apr 2004
Posts: 682

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/ version 'GCC-3.3 not found (required by /ysr/local/lib/

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
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

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

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


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:54 PM.

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