DLL hell...

Cameron Gregory <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
G'Day,
	I'm also trying to get libgimp compiled (so I can compile app/),
and I'm stuck here...

cannot find entry symbol _DllMainCRTStartup@12; defaulting to 00401000
(see below)

I'm assuming the first warning is okay (cannot link to static lib),
but after looking at aclocal.m4 I don't think the second one (can't find
entry
symbol _DLLMainCRTStartup) is good, and then a bunch of undefined
symbols.

thanks in advance for help,

Cameron

tml: I was thinking, maybe if you posted a log of your build (just
the raw output), that would help other along (and show that it really
can
be done, and it's not conjured up by other mystical forces (and it's
just
the force of TML :-) ...).


/bin/bash ../libtool --mode=link gcc -fnative-struct -mpentium  -O4
-Wall -fnati
ve-struct  -L/target/lib -lgtk -lgdk -lglib-2.0 -o libgimpui.la -rpath
/target/l
ib -version-info 0:3:0 -release 1.2 -no-undefined -export-symbols
gimpui.def gim
pmenu.lo gimpbrushmenu.lo gimpgradientmenu.lo gimppatternmenu.lo
gimpchainbutton
.lo gimpcolorbutton.lo gimpdialog.lo gimpexport.lo gimpfileselection.lo
gimphelp
ui.lo gimppatheditor.lo gimppixmap.lo gimpquerybox.lo gimpsizeentry.lo
gimpui.lo
 gimpunitmenu.lo gimpwidgets.lo  libgimp.la

*** Warning: This system can not link to static lib archive libgimp.la.
*** I have the capability to make that library automatically link in
when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
rm -fr .libs/libgimpui.la .libs/libgimpui.* .libs/libgimpui-1.2.*
if test "x`head -1 gimpui.def`" = xEXPORTS; then cp gimpui.def
.libs/libgimpui-1
-2-0.dll-def; else echo EXPORTS > .libs/libgimpui-1-2-0.dll-def;
_lt_hint=1; cat
 gimpui.def | while read symbol; do set dummy $symbol; case $# in 2)
echo " $2 @
 $_lt_hint ; " >> .libs/libgimpui-1-2-0.dll-def;; *) echo " $2 @
$_lt_hint $3 ;
" >> .libs/libgimpui-1-2-0.dll-def;; esac; _lt_hint=`expr 1 +
$_lt_hint`; done;
fi
 gcc -fnative-struct -mpentium
-Wl,--base-file,.libs/libgimpui-1-2-0.dll-base -W
l,-e,_DllMainCRTStartup@12 -o .libs/libgimpui-1-2-0.dll  gimpmenu.lo
gimpbrushme
nu.lo gimpgradientmenu.lo gimppatternmenu.lo gimpchainbutton.lo
gimpcolorbutton.
lo gimpdialog.lo gimpexport.lo gimpfileselection.lo gimphelpui.lo
gimppatheditor
.lo gimppixmap.lo gimpquerybox.lo gimpsizeentry.lo gimpui.lo
gimpunitmenu.lo gim
pwidgets.lo  -L/target/lib -lgtk -lgdk -lglib-2.0
c:\mingw\bin\..\lib\gcc-lib\mingw32\2.95.3-5\..\..\..\..\mingw32\bin\ld.exe:
war
ning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to
00401000
gimpmenu.lo(.text+0xb8):gimpmenu.c: undefined reference to
`gimp_image_list'
gimpmenu.lo(.text+0x101):gimpmenu.c: undefined reference to
`gimp_image_get_file


-- 
Please include previous messages in reply so I can follow the thread.

---------------------------------------------------------------------
Cameron Gregory
http://www.flamingtext.com/
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.