Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Strange ERROR!!!!!!!!!!!!!?????????????

Strange ERROR!!!!!!!!!!!!!?????????????

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestion
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OmarSH
    wrote on last edited by
    #1

    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 ,

    D L D 3 Replies Last reply
    0
    • O OmarSH

      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 ,

      D Offline
      D Offline
      dusty_dex
      wrote on last edited by
      #2

      have you looked at file stdafx.h?

      O 1 Reply Last reply
      0
      • D dusty_dex

        have you looked at file stdafx.h?

        O Offline
        O Offline
        OmarSH
        wrote on last edited by
        #3

        what should i looking for ? in "stdafx.h" file??

        D 1 Reply Last reply
        0
        • O OmarSH

          what should i looking for ? in "stdafx.h" file??

          D Offline
          D Offline
          dusty_dex
          wrote on last edited by
          #4

          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
          }
          #endif

          Not likely to be stdafx.h but I thought it worth asking because it's related to stdafx.obj :)

          1 Reply Last reply
          0
          • O OmarSH

            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 ,

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            O 1 Reply Last reply
            0
            • L Lost User

              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

              O Offline
              O Offline
              OmarSH
              wrote on last edited by
              #6

              ok guys i am beginner ,what should i do exactly to solve this error ,even i don't know what is the linker ,

              L 1 Reply Last reply
              0
              • O OmarSH

                ok guys i am beginner ,what should i do exactly to solve this error ,even i don't know what is the linker ,

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                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

                O 1 Reply Last reply
                0
                • L Lost User

                  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

                  O Offline
                  O Offline
                  OmarSH
                  wrote on last edited by
                  #8

                  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....)

                  L 1 Reply Last reply
                  0
                  • O OmarSH

                    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....)

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    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

                    O 1 Reply Last reply
                    0
                    • L Lost User

                      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

                      O Offline
                      O Offline
                      OmarSH
                      wrote on last edited by
                      #10

                      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

                      L 1 Reply Last reply
                      0
                      • O OmarSH

                        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

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0
                        • O OmarSH

                          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 ,

                          D Offline
                          D Offline
                          David Crow
                          wrote on last edited by
                          #12

                          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

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups