[M3devel] new problem linking on NT386

Jay jayk123 at hotmail.com
Tue May 6 03:47:17 CEST 2008


Sounds like you missed the "gui" switch on the cm3 command lineor in the m3makefile -- in the m3makefile really.Putting it on the command line imho is only reasonable for thosesimple cases that don't have an m3makefile
 link -dump -symbols NT386\_m3main.obj | findstr /i main 
?I expect you will have main or wmain, but not WinMain or wWinMain.
 
Is this meant to be a gui app or a command line app?
If it is meant to be a command line, then the problem is something else.
  And I don't even want to explain..
Can you send me the source?
 
Also you are missing hand.obj here, so you don't have the potential pixmap fix.
 - Jay


Date: Mon, 5 May 2008 21:01:10 -0400From: rcoleburn at scires.comTo: m3devel at elegosoft.comSubject: [M3devel] new problem linking on NT386

I've rebuild my cm3 system using the latest sources.
 
I am now having a failure linking certain programs that used to build without problems.
 
I've listed the linker output from one of the programs below.  The issue seems to be an unresolved external symbol _WinMain at 16 .
 
Any ideas on what has changed and how to get this working again?
 
Microsoft (R) Incremental Linker Version 9.00.21022.08Copyright (C) Microsoft Corporation.  All rights reserved.
 
/out:CV_MessageTool.exe /subsystem:windows /entry:WinMainCRTStartup /nodefaultlib /debug /incremental:no /opt:ref /delayload:wsock32.dll /delayload:advapi32.dll /delayload:gdi32.dll /delayload:netapi32.dll /delayload:user32.dll /delayload:comctl32.dll delayimp.lib _m3main.obj iconRes.obj Resources.io Resources.mo Main.mo C:\cm3\pkg\windowsResources\NT386\windowsResources.lib C:\cm3\pkg\libSciRes3\NT386\libSciRes3.lib C:\cm3\pkg\stable\NT386\stable.lib C:\cm3\pkg\serial2\NT386\serial2.lib C:\cm3\pkg\netobj\NT386\m3netobj.lib C:\cm3\pkg\parseparams\NT386\m3parseparams.lib C:\cm3\pkg\formsvbt\NT386\m3formsvbt.lib C:\cm3\pkg\videovbt\NT386\videovbt.lib C:\cm3\pkg\jvideo\NT386\jvideo.lib C:\cm3\pkg\web\NT386\web.lib C:\cm3\pkg\tcp\NT386\m3tcp.lib C:\cm3\pkg\formsvbtpixmaps\NT386\m3formsvbtpixmaps.lib C:\cm3\pkg\vbtkit\NT386\m3vbtkit.lib C:\cm3\pkg\ui\NT386\m3ui.lib C:\cm3\pkg\libm3\NT386\m3.lib C:\cm3\pkg\m3core\NT386\m3core.lib winspool.lib comctl32.lib wsock32.lib comdlg32.lib netapi32.lib gdi32.lib user32.lib advapi32.lib kernel32.lib msvcrt.lib LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from wsock32.dllLINK : warning LNK4199: /DELAYLOAD:advapi32.dll ignored; no imports found from advapi32.dllLINK : warning LNK4199: /DELAYLOAD:gdi32.dll ignored; no imports found from gdi32.dllLINK : warning LNK4199: /DELAYLOAD:netapi32.dll ignored; no imports found from netapi32.dllLINK : warning LNK4199: /DELAYLOAD:user32.dll ignored; no imports found from user32.dllLINK : warning LNK4199: /DELAYLOAD:comctl32.dll ignored; no imports found from comctl32.dllmsvcrt.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain at 16 referenced in function ___tmainCRTStartupCV_MessageTool.exe : fatal error LNK1120: 1 unresolved externals
Regards,
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080506/1bb6ecfe/attachment-0002.html>


More information about the M3devel mailing list