This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Again Undefined Reference to WinMain


Hello everybody.
   I read almost all the solution for undefined reference of WinMain@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@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@16'
collect2: ld returned 1 exit status
make: *** [.././ntexe/bin/ecd] Error 1
bash-2.02$

Prashant
begin:vcard 
n:Kharche;Prashant
x-mozilla-html:FALSE
org:EASi Technologies;IT
adr:;;;;;;
version:2.1
email;internet:prashant@easi.soft.net
x-mozilla-cpt:;0
fn:Prashant Kharche
end:vcard

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]