By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,327 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,327 IT Pros & Developers. It's quick & easy.

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

P: n/a
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...

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.