473,402 Members | 2,050 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,402 software developers and data experts.

'Symbol referencing error' while compiling

29
fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
make: *** [compile] Error 1
This problem appears when i am trying to make an application, but i don't know how to solve it i think it related to library path.
Jul 20 '07 #1
5 2605
sicarie
4,677 Expert Mod 4TB
As this was posted in the Articles section, I have moved it to the forum. In the future, please post your questions here.

Also, look at this, as it requests you not double/triple post, use good thread titles, post in the forums section, etc... and explains the consequences for not following the rules. Thanks!
Jul 20 '07 #2
JosAH
11,448 Expert 8TB
fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
make: *** [compile] Error 1
This problem appears when i am trying to make an application, but i don't know how to solve it i think it related to library path.
Collect2 is the actual linker doing all the hard work; ld is just the front end. Are
you sure no other error diagnostics are printed before that "fatal" message?

If all else fails, make a "clean build", i.e. throw away your .o and (optionally) .a
files as well as your (also optional) .so files and build again. Only do this if all
else fails. First check what collect2 really tried to tell you.

kind regards,

Jos
Jul 20 '07 #3
sicarie
4,677 Expert Mod 4TB
And please have a look at your PM's at the top right of the page.
Jul 20 '07 #4
aeo3
29
there is an error message before:
undefined first reference
symbol in file
prng_new /var/tmp/CC3q8e95.0
I am trying to delete all *.o by using
clean:
rm *.o *.dta
but the same message appears
Jul 20 '07 #5
sicarie
4,677 Expert Mod 4TB
aeo3-

Please check your PMs.

This is your last warning.
Jul 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: student | last post by:
while compiling on: SunOS 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-280R I get the following error: Undefined first referenced symbol ...
0
by: Sharron | last post by:
Hello, This problem has me completely stumped...everyone on the net seems to have this problem but I don't understand what they are talking about. I know my code is correct it compiles fine but...
2
by: Freddy | last post by:
I am not an experienced programmer, but I had a VC++ program I am trying to eliminate all the VC++ commands from it...and keeping it as a normal C/C++ program......I guess I have succeeded so far,...
3
by: Lee Gillie | last post by:
I have a VS6 project which I brought into VS .NET, and all has been building fine. Then I upgraded to VS 2003 and I have one source which will no longer compile. Any clues? Compiling......
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: Will hunting | last post by:
hi, when compiling using makefile on unix, I encounter such problem, anyone has similar experience on this? what could be the possible cause? thanks make OBJS=out/release "EXTRAFLAGS=-O...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
5
by: kp | last post by:
Hi, I am compiling on an AIX 5.1 box and my test machine is AIX 5.3. I run the foll. steps for compiling my test binary "test" /usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include...
0
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
4
by: Tex08 | last post by:
I did it again... after trashing the old code and trying to start simple, I receive the following error at compile (with g++, required)" g++ main.cc Undefined first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.