public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Again Undefined Reference to WinMain
@ 2002-01-11  3:02 Prashant Kharche
  2002-01-11  3:09 ` Robert Collins
  2002-01-11  4:01 ` Don Sharp
  0 siblings, 2 replies; 3+ messages in thread
From: Prashant Kharche @ 2002-01-11  3:02 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 3901 bytes --]

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

[-- Attachment #2: Card for Prashant Kharche --]
[-- Type: text/x-vcard, Size: 187 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Again Undefined Reference to WinMain
  2002-01-11  3:02 Again Undefined Reference to WinMain Prashant Kharche
@ 2002-01-11  3:09 ` Robert Collins
  2002-01-11  4:01 ` Don Sharp
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Collins @ 2002-01-11  3:09 UTC (permalink / raw)
  To: Prashant Kharche, cygwin

AFAIK Cygwin B20.1 is not supported anymore.

Rob


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Again Undefined Reference to WinMain
  2002-01-11  3:02 Again Undefined Reference to WinMain Prashant Kharche
  2002-01-11  3:09 ` Robert Collins
@ 2002-01-11  4:01 ` Don Sharp
  1 sibling, 0 replies; 3+ messages in thread
From: Don Sharp @ 2002-01-11  4:01 UTC (permalink / raw)
  Cc: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-11 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11  3:02 Again Undefined Reference to WinMain Prashant Kharche
2002-01-11  3:09 ` Robert Collins
2002-01-11  4:01 ` Don Sharp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).