Linking Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manuel Mayer

    Linking Problem

    Hi. I'm using Vc++ right now...i've build a simple code that is used as
    skeletton for all my Windows App.

    I'm using 3 Includes : Windows.h, Stdio.h and StdArg.h

    when i compile my code i got no error and no warning but when i Build the
    entire project I got that error:

    WinMain.obj : error LNK2001: unresolved external symbol "int __cdecl
    UnregisterWindo wClasses(struct HINSTANCE__ *)"
    (?UnregisterWin dowClasses@@YAH PAUHINSTANCE__@ @@Z)
    Debug/FrameWork.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    Any Help plz ?

    Manuel Mayer
    ManuelMayer@Vid eotron.ca


  • John Harrison

    #2
    Re: Linking Problem


    "Manuel Mayer" <ManuelMayer@Vi deotron.ca> wrote in message
    news:2skNa.5732 3$0B.806302@wag ner.videotron.n et...[color=blue]
    > Hi. I'm using Vc++ right now...i've build a simple code that is used as
    > skeletton for all my Windows App.
    >
    > I'm using 3 Includes : Windows.h, Stdio.h and StdArg.h
    >
    > when i compile my code i got no error and no warning but when i Build the
    > entire project I got that error:
    >
    > WinMain.obj : error LNK2001: unresolved external symbol "int __cdecl
    > UnregisterWindo wClasses(struct HINSTANCE__ *)"
    > (?UnregisterWin dowClasses@@YAH PAUHINSTANCE__@ @@Z)
    > Debug/FrameWork.exe : fatal error LNK1120: 1 unresolved externals
    > Error executing link.exe.
    >
    > Any Help plz ?
    >[/color]

    Somewhere in your program you are calling a function called
    UnregisterWindo wClasses, but you haven't written a function called
    UnregisterWindo wClasses. This could as simple as a typo, but without seeing
    ANY code its impossible to tell.

    john


    Comment

    Working...