Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C3EC354.35504763@easi.soft.net> Date: Fri, 11 Jan 2002 16:19:56 +0530 From: Prashant Kharche Organization: EASi Technologies X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Again Undefined Reference to WinMain Content-Type: multipart/mixed; boundary="------------AC6BA2885F30D6B3F711C51F" --------------AC6BA2885F30D6B3F711C51F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 --------------AC6BA2885F30D6B3F711C51F Content-Type: text/x-vcard; charset=us-ascii; name="prashant.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Prashant Kharche Content-Disposition: attachment; filename="prashant.vcf" begin:vcard n:Kharche;Prashant x-mozilla-html:FALSE org:EASi Technologies;IT adr:;;;;;; version:2.1 email;internet:prashant AT easi DOT soft DOT net x-mozilla-cpt:;0 fn:Prashant Kharche end:vcard --------------AC6BA2885F30D6B3F711C51F Content-Type: text/plain; charset=us-ascii -- 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/ --------------AC6BA2885F30D6B3F711C51F--