On 12/29/2011 05:23, Peter Meyer wrote:
> Hi,
> Iam Peter from the Centauri Project here at Sourceforge and we are also 
> OpenSource (unfortently, iam alone on the Project right now but this
> is an diffrent story).
> 
> I hope some one can point me to the right point:
> 
> I just downloaded Sezeros 
> "mingw-w64-bin_x86_64-mingw_20111101_sezero.zip" from your Downloadsection
> and everything working very well.Ich can compile 64-Bit Console Appz and 
> simple Makefiles with mingw32-make.exe
> works also well.
> 
> Now the Problem:
> I have installed this Version of the GTK Win64 Devel Package: 
> http://www.gtk.org/download/win64.php (but i
> really was not able to find out if this Package was build with Visual 
> C/C++ or your Mingw64 64-Bit Compiler (i
> was not able to find the Infos, but i thin it is a Mingw64 Build, please 
> let me know if iam right or wrong)
> 
> But anyway, i modifying my Makefile for a dummy test and i was able to 
> figure out the Include part,
> but not the LDFLAGS Part. There are a lots of *.LIB Files in the 
> X:\GTK64\lib Folder but also Files with
> names like >> libgdkmm-2.4.dll.a << but i allways getting the following 
> Error if i use gmake:
> 
> Location:
> X:\Tmp\gtk2_tests\test1_win64> (UAC is OFF, Windows Vista 64)
> 
> gmake
> hello.o:hello.cpp:(.text+0x52): undefined reference to 
> `Glib::ustring::~ustring()'
> 
> As Result: The Objectfile hello.o was created, but the Exe was not:
> 
> This is the Code of hello.cpp
> 
> 
> #include <stdlib.h>
> #include <stdio.h>
> #include <iostream>
> #include <gtkmm.h> <<---- This blank Include produces the Linker Error 
> // if uncomment, the Error disapear.
> 
> using namespace std;
> 
> int main()
> {
>   cout << "test";
>   getchar();
>   return(0);
> }
> 
> My Question is:
> How to set LDFLAGS Linker params on MinGW64 correctly?
> On Linux and Solaris there is no Problem using GCC 4.5 but.
> 
> I hope some one has an Ideaa.
> By the Way: VERRY good Project!
> 
> Greetings Peter

LDFLAGS is very much autotools specific (avoid custom Makefiles if
possible). Your custom Makefile might not respect LDFLAGS env var.

You need to dive in and understand it before being able to edit it
correctly. I'm guessing you didn't link to glibmm, or your glibmm
install is broken in some way.

Look for your hello.exe target link rule and add the proper link libraries.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to