delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3C3ED30B.7BFA1C99@iee.org> |
Date: | Fri, 11 Jan 2002 11:56:59 +0000 |
From: | Don Sharp <dwsharp AT iee DOT org> |
X-Mailer: | Mozilla 4.78 [en] (WinNT; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Again Undefined Reference to WinMain |
References: | <3C3EC354 DOT 35504763 AT easi DOT soft DOT net> |
Recently, while trying to compile bcpp, I had exactly that message. My hair was becoming scarcer by the minute until I saw that I had a missing module. Adding the missing module to the link and lo and behold everything was fine! Hope that helps Don Sharp Prashant Kharche wrote: > > Hello everybody. > I read almost all the solution for undefined reference of WinMain AT 16 > and I trying all those flags for linking with gcc. still I am getting > same error. Can any body help me for this. My makefile prints following > lines while linking. Please suggest a solution for this problem > > bash-2.02$ make > rm -f .././ntexe/bin/ecd > gcc ../vgui/lm/ntlib/lm_new.obj -o .././ntexe/bin/ecd > -L//h/temp/XDK/lib > -L//H/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib -L.././linlib > -L../vgu > i/lm/ntlib -Wl,-u,_WinMain AT 16 -Xlinker -lcomctl32 -mwindows -D__win32 > -DWin32 - > D_Win32 -DWinnt -D_CONSOLE -DCONSOLE -mno-cygwin -llinkerr -lPlot > -lScript -l > System -lVJpeg -lVGif -lGrip -lImpLsdyna -lImpMsc67 -lImpPC -lImpMadymo > -lMadRes > ult -lEcNasResult -lPostGuiNew -lEcPlot -lPlotGen -lResult -lEcResult > -lPamRslt > -lAnim -lTable -lFeSect -lEcmFeSect -lMpr -lMprMain -lMprImp -lMprDisp > -lMprDbs > -lMprSave -lMprUtl -lEmcFunc -lMprSet -lCrossSection -lAsmLib -lGmShape > -lFeImpM > ech -lMath -lCrModel -lDynaEcMain -lFileGui -lAsmGui -lFeMat -lUtl > -lFeEos -lFeC > heck -lFeHg -lFeSect -lPartSprSht -lFeModel -lCrashDB -lModelGui -lPoint > -lCurve > Gui -lSurfGui -lSolidGui -lGuiLinelm -lRestraPamTmpGui -lNewVectorGui > -lVectorGu > i -lMshCntrl -lMapMesh -lPave -lAfmMesh -lShell -lMassGui -lModelGui > -lPave -lAf > mMesh -lTransGui -lClnupGui -lEditGui -lCoordGui -lPickUtl -lHandle > -lShowGui -l > SetGui -lVSolGui -lPickUtl -lMeshGui -lSprsht -lCardImg -lFeMatDb > -lGeModel - > lCurve -lBdry -lVsBdry -lPdgs -lDynaOutConGui -lDynaOthersGui > -lChecksGui -lAs > mLib -lCardUtl -lSolver -lFePostRes -lIges -lFeImpExp -lVsgenutl > -lPix -lVspa > nel -lVistaSpr -lHcp -lUtlObj -lFeImpExpFeOthers -lFeImpExpCrOthers > -lVglobj -lS > cript -lVglobj -lRBAirbag -lRBBlock -lRBContact -lRBCoupling -lRBFem > -lRBForcMdl > -lRBModel -lRBOrient -lRBOthers -lRBOutPut -lRBConvert -lGmShape > -lRBShapes -lR > BSystem -lAnim -lEpvar -lEpExeGui -lMpr -lPartGui -lPartLsd -lPartNas > -lPartRad > -lPartPam -lPartMad -lValidGui -lFeMatGui -lSpectEdit -lCntctGui > -lCrPenetrGui > -lVgl -lShapeGui -lPamAdvbgGui -lPamAlnRevGui -lVistgui -lVistapi > -lVistgui -lVb > Utl -lFastener -lFastenerGui -lRespGuiNew -lAirbagFold -lABFolder > -lDispSpr -lP > artSprSht -lFastDispGui -lAssociate -lRbPtGui -lChecksGui -lToolsGui > -lXyPlotGui > New -lXyPlotNew -lGrip -lHandle -lMiscGui -lGenericGui -lTreegui > -lRespGuiNew -l > Vglobj -lEpvar -lEpExeGui -lVglobj -lImpRAD31 -lDynaCrLoadsGui > -lDynaJointGui -l > DynaCrConstrGui -lDynaCrBounGui -lNewCplGui -lSysPosGui -lOrientGui > -lRbSysDefGu > i -lVGif -lUsgTrkr -lDynaCrVelGui //h/temp/XDK/lib/HCLMrm.lib > //h/temp/XDK/lib/H > CLXm.lib //h/temp/XDK/lib/HCLUil.lib //h/temp/XDK/lib/HCLXaw.lib > //h/temp/XDK/li > b/HCLSM.lib //h/temp/XDK/lib/xlib.lib //h/temp/XDK/lib/Hclice.lib > //h/temp/XDK/l > ib/HCLXmu.lib //h/temp/XDK/lib/HCLXt.lib //h/temp/XDK/lib/HCLXp.lib > //h/temp/XDK > /lib/xlibcon.lib //h/temp/XDK/lib/HCLXtst.lib > //h/temp/XDK/lib/HCLXieRt.lib //h/ > temp/XDK/lib/hclshm.lib //h/temp/XDK/lib/HCLXI.lib > //h/temp/XDK/lib/MrmStat.lib > //h/temp/XDK/lib/XmStatXt.lib -lkernel32 //h/temp/XDK/lib/HCLGLX.lib > //h/temp/XD > K/lib/HCLGLU.lib //h/temp/XDK/lib/HCLNURBS.lib > //h/temp/XDK/lib/HCLAUX.lib //h/t > emp/XDK/lib/HCLGLUT.lib //h/temp/XDK/lib/GLWSTATI.lib -lopengl32 -lglu32 > //c/jdk > 1.2.2/lib/jvm.lib "//C/Program Files/flexlm/v7.2/i86_n3/lmgr327b.lib" > -lm > //h/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: > ../vgui/lm/ntlib/lm_new.obj: > warning: ignoring duplicate section `.text' > //h/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: //C/Program > Files/flexlm/v7.2 > /i86_n3/lmgr327b.lib(LMGR327B.dll): warning: ignoring duplicate section > `.text' > //H/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libmingw32.a(main.o): > In > function `main': > /home/noer/src/b20/comp-tools/devo/winsup/mingw/main.c:89: undefined > reference t > o `WinMain AT 16' > collect2: ld returned 1 exit status > make: *** [.././ntexe/bin/ecd] Error 1 > bash-2.02$ > > Prashant > > ------------------------------------------------------------------------ > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |