With all the library files renamed with s/.lib$/.a/i the output is now (I now run dmake twice, which reduces the output to just the failed parts), hmm... no -L"G:\GTK\lib", so my GTK libraries are not being handed to the compiler by dmake?
dlltool --def Glib.def --output-exp dll.exp
g++ -o blib\arch\auto\Glib\Glib.dll -Wl,--base-file -Wl,dll.base -mdll
+ -s -L"G:\strawberry\perl\lib\CORE" -L"G:\strawberry\c\lib" Glib.o GE
+rror.o GUtils.o GLog.o GType.o GBoxed.o GObject.o GValue.o GClosure.o
+ GSignal.o GMainLoop.o GIOChannel.o GParamSpec.o GKeyFile.o GBookmark
+File.o gperl-gtypes.o -Wl,--image-base,0x69080000 G:\strawberry\perl
+\lib\CORE\libperl510.a G:\strawberry\c\lib\libmsvcrt.a G:\strawberry\
+c\lib\libmoldname.a G:\strawberry\c\lib\libkernel32.a G:\strawberry\c
+\lib\libuser32.a G:\strawberry\c\lib\libgdi32.a G:\strawberry\c\lib\l
+ibwinspool.a G:\strawberry\c\lib\libcomdlg32.a G:\strawberry\c\lib\li
+badvapi32.a G:\strawberry\c\lib\libshell32.a G:\strawberry\c\lib\libo
+le32.a G:\strawberry\c\lib\liboleaut32.a G:\strawberry\c\lib\libnetap
+i32.a G:\strawberry\c\lib\libuuid.a G:\strawberry\c\lib\libws2_32.a G
+:\strawberry\c\lib\libmpr.a G:\strawberry\c\lib\libwinmm.a G:\strawbe
+rry\c\lib\libversion.a G:\strawberry\c\lib\libodbc32.a G:\strawberry\
+c\lib\libodbccp32.a dll.exp
Glib.o:Glib.c:(.text+0x10e): undefined reference to `g_return_if_fail_
+warning'
Glib.o:Glib.c:(.text+0x177): undefined reference to `g_filename_from_u
+tf8_utf8'
Glib.o:Glib.c:(.text+0x1a6): undefined reference to `g_free'
Glib.o:Glib.c:(.text+0x213): undefined reference to `g_filename_to_utf
+8_utf8'
Glib.o:Glib.c:(.text+0x23b): undefined reference to `g_free'
Glib.o:Glib.c:(.text+0x338): undefined reference to `g_malloc'
# SNIP! cut out another thousand "undefinde reference to"
gperl-gtypes.o:gperl-gtypes.c:(.text+0xe2): undefined reference to `g_
+enum_register_static'
gperl-gtypes.o:gperl-gtypes.c:(.text+0x112): more undefined references
+ to `g_enum_register_static' follow
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\Glib\Glib.dll'
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|