Strange ERROR!!!!!!!!!!!!!?????????????
-
Well are you using an external C library? Your error is with the linker, and the function name has been mangled by C++ because somewhere in your code there should be
#ifdef __cplusplus
extern "C" {
#include ...
#endif
.
.
.
#ifdef __cplusplus
}
#endifNot likely to be stdafx.h but I thought it worth asking because it's related to stdafx.obj :)
-
Hello guys: any way, after i have finished writing my program i have recived an error it is like that : LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup' 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscall list::~list(void)" (??1list@@QAE@XZ) referenced in function _main fatal error LNK1120: 1 unresolved externals this is the error from compiler, by the way i am using a visual studio 2010 ,
-
OmarSH wrote:
this is the error from compiler
No, this is the error from the Linker; you need to understand the difference.
Use the best guess
-
ok guys i am beginner ,what should i do exactly to solve this error ,even i don't know what is the linker ,
We need to see some of your code to be able to figure out what is going on. The first message implies that there is some confusion between c and C++ code in your project. The second message suggests that you have a call to a
list
destructor in your code. For information on the linker (and building programs in general) see http://msdn.microsoft.com/en-us/library/91621w01(v=vs.71).aspx[^].Use the best guess
-
We need to see some of your code to be able to figure out what is going on. The first message implies that there is some confusion between c and C++ code in your project. The second message suggests that you have a call to a
list
destructor in your code. For information on the linker (and building programs in general) see http://msdn.microsoft.com/en-us/library/91621w01(v=vs.71).aspx[^].Use the best guess
it worked man,i delete the destructor but not from long time i have been getting something like that "Cannot find or open the PDB file" this message is repeated to about thirty file ,and make my console program end with out the normal message (press any key to continue....)
-
it worked man,i delete the destructor but not from long time i have been getting something like that "Cannot find or open the PDB file" this message is repeated to about thirty file ,and make my console program end with out the normal message (press any key to continue....)
-
I am not sure what you are saying here, but it may be that you need to do a Clean and Rebuild of your project(s).
Use the best guess
this is part of the compiling: 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded. 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded. 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
-
this is part of the compiling: 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded. 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded. 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file 'TRY5.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
OmarSH wrote:
this is part of the compiling:
No, this looks like the debug window of Visual Studio when you are trying to execute your program. You really need to go to that link I provided for you, and learn and understand how programs are built and executed, and the differences between the various phases of that process.
Use the best guess
-
Hello guys: any way, after i have finished writing my program i have recived an error it is like that : LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup' 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscall list::~list(void)" (??1list@@QAE@XZ) referenced in function _main fatal error LNK1120: 1 unresolved externals this is the error from compiler, by the way i am using a visual studio 2010 ,
OmarSH wrote:
1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscall list::~list(void)" (??1list@@QAE@XZ) referenced in function _main
Is the
list
object being referenced yours or the one from the STL? If the former, it's missing a destructor."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous