[vtkusers] Re: Problem with creating a UI using KWWidgets
    Goodwin Lawlor 
    goodwin.lawlor at ucd.ie
       
    Wed Oct 18 12:52:20 EDT 2006
    
    
  
Ashish Singh wrote:
> Hi Sharwari,
> 
> The errors I am getting are:
> 
> Linking...
>    Creating library Debug\mygui.lib and object Debug\mygui.exp
> MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain at 16 referenced in function ___tmainCRTStartup
> 
> Debug\mygui.exe : fatal error LNK1120: 1 unresolved externals
> 
> Is it because of the cmakelist.txt file?
> 
> Thanks,
> Ashish
Hi Ashish,
Its hard to tell what going on with out seeing your code... Looks like 
you have written a main() function but are building a "windows 
application"... if
1. You want to build a windows application change main to WinMain (and 
the appropriate signature)
or
2. You want a console application, either create a new solution based on 
a console app or change the "SUBSYSTEM" setting in you present project 
to "CONSOLE"
hth
Godwin
    
    
More information about the vtkusers
mailing list