unresolved external symbol error

N

Netter

Tried to compile a program in vs2005 that compiles in vs2003 and get this
error:


Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) MyGame.obj



Can anyone help me here?



Thanks
 
B

Bruno van Dooren [MVP VC++]

Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) MyGame.obj

Did you do a 'clean' before attempting to build the solution?

It seems as if that object file was created with settings for a dynamic
runtime.
What are the settings for the CRT? is is /MT?

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
N

Netter

I hadn't done a "clean" but after your note I tried it but got the same
error.

I do not know how to find the settings for the CRT is. Can you tell me?


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top