Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Scene conversion problems

  1. #1
    Intern Contributor
    Join Date
    Jan 2002
    Location
    Vancouver, Wa, USA
    Posts
    58

    Scene conversion problems

    Hello,
    I just made a post on importing a scene (model) to OpenGL. I am using an application called "3D4WIN". I converted an .ASE file to C/c++, and I keep recieving this error in the build:

    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/54654654.exe : fatal error LNK1120: 1 unresolved externals


    I do not know what is wrong. I reinstalled MSVC++, but no luck. Any suggestions on how to fix?


    Thanks in advance.

    [This message has been edited by ThinIce (edited 03-25-2002).]

    [This message has been edited by ThinIce (edited 03-25-2002).]
    ==============

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    391

    Re: Scene conversion problems

    you have created a console app and so the compiler expects
    void main()
    {
    }

    you probably have int WinMain(...) instead

  3. #3
    Intern Contributor
    Join Date
    Jan 2002
    Location
    Vancouver, Wa, USA
    Posts
    58

    Re: Scene conversion problems

    I converted it from console to Win32 app, and I get this:

    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/test.exe : fatal error LNK1120: 1 unresolved externals
    ==============

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: Scene conversion problems

    Do you have a main or a WinMain function at all?

    I have a funny feeling you are trying to build an executable from a code meant to be built as a library file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •