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

linker error MS Visual C++

P: n/a
while trying to compile a relatively simple project, I recieved the error:
" error LNK2001: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char>......"

I checked MSDN and found the page stating that this error is generated by
design. If I want to avoid getting that error I should remove the /GZ
argument from the compiler switches in the project.

I went to Project Settings->C/C++->Project Options and removed the argument
but, I still get the message. Any suggestions from anyone?

Thanks in advance.
Roger
Sep 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi!

Give us full error output & compiler & linker switches.

Kirill

Sep 27 '06 #2

P: n/a
"rknowles" <rk******@mchsi.comwrote in message
news:38kSg.208889$1i1.99954@attbi_s72...
while trying to compile a relatively simple project, I recieved the error:
" error LNK2001: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char>......"

I checked MSDN and found the page stating that this error is generated by
design. If I want to avoid getting that error I should remove the /GZ
argument from the compiler switches in the project.

I went to Project Settings->C/C++->Project Options and removed the
argument but, I still get the message. Any suggestions from anyone?

Thanks in advance.
Roger
You seem to be using an ostream wrong. You are trying to do something that
isn't done the way you are trying to do it. I hate these types of errors
because they are extremely hard to decipher what the actual error is. What
you'll need to do is give us the line of code that this error is occuring
on, with any supporting code (if you are trying to output something from a
class we'll probably need to see the class definition also, etc...).
Sep 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.