Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Stumped: ld: fatal: Symbol referencing errors. No output writtento myfile.o

Reply
Thread Tools

Stumped: ld: fatal: Symbol referencing errors. No output writtento myfile.o

 
 
Sharron
Guest
Posts: n/a
 
      08-19-2003
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 when I try to create an
executable "CC -o myfile.o myfile.cc" it produces the following error

Undefined first referenced
symbol in file
myClass::myClass (int, int, int) myfile.o
ld: fatal: Symbol referencing errors. No output written to myfile.o

I tried it in Visual C++ 6.0 and it produced some sort of linker error
but I changed my project type to win32 console appliation and it works
fine with Visual C++ 6.0...

 
Reply With Quote
 
 
 
 
Thomas Matthews
Guest
Posts: n/a
 
      08-19-2003
Sharron wrote:
> 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 when I try to create an
> executable "CC -o myfile.o myfile.cc" it produces the following error
>
> Undefined first referenced
> symbol in file
> myClass::myClass (int, int, int) myfile.o
> ld: fatal: Symbol referencing errors. No output written to myfile.o
>
> I tried it in Visual C++ 6.0 and it produced some sort of linker error
> but I changed my project type to win32 console appliation and it works
> fine with Visual C++ 6.0...
>


Please move to the right a little so I can see your program.
Now open up a shell window.
Ahh, I see the problem, line #42.

If you would like more detailed help, please post the
minimal program that duplicates the problem. Include
in your post the actual behavor and expected behavior.
Also include any dialogs with compilers and other tools.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why ":symbol" failed but 'symbol' successed with JRuby 1.0.3? Song Ma Ruby 2 07-20-2008 04:08 AM
what's differnece between #ifdef symbol and #if defined(symbol) baumann@pan C Programming 1 04-15-2005 08:25 AM
Symbol Referencing Error in Fortran 90 student Python 1 04-04-2005 06:40 PM
Python 2.3.4 under AT&T MP RAS SVR4: ld: Symbol referencing errors. Alexander Landgraf Python 1 10-20-2004 10:19 PM
stumped: error => ld: fatal: Symbol referencing errors. No outputwritten Sharron C++ 0 08-19-2003 01:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57