"David Lowndes" <Da****@example.invalidwrote in message
news:kg********************************@4ax.com...
I have a cpp program that use to compile in C++6 but gives a bunch of
errors in VS2005
Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) AnnGame.obj
That error looks a bit odd. Do you have your own function named strstr
in module AnnGame?
No. I checked
>
>>I'm wondering if I'm missing a library or two.
I think that the library containing strstr would be a standard one
depending on the compiler run-time model you've used. You shouldn't
need to explicitly specify it unless you're using the NODEFAULTLIB
switch.
You don't by any chance have a path to the VC6 libraries that's
causing the linker to pick up the old libraries before the new ones?
Property Pages for the project:
Configuration Properties/ Linker/ Command Line::
/OUT:".\Release/AnnGame.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST
/MANIFESTFILE:".\Release\AnnGame.exe.intermediate.m anifest"
/NODEFAULTLIB:"LIBCMT.LIB" /PDB:".\Release/AnnGame.pdb" /SUBSYSTEM:WINDOWS
/MACHINE:X86 /ERRORREPORT:PROMPT odbc32.lib odbccp32.lib comctl32.lib
htmlhelp.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib
I see the NODEFAULTLIB:"LIBCMT.LIB" but don't know how to remove it. I
can't edit it in the property pages.
>
Merry Christmas
Dave
same to you and thanks