Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Using the MinGW compiler on Ubuntu...

  • Please log in to reply
No replies to this topic

#1 Wolfy87


  • Members
  • 414 posts
  • Gender:Male
  • Location:England
  • Local time:09:07 AM

Posted 23 November 2009 - 12:55 PM

I am now working with GTK+ and C++ in Ubuntu and that all works fine, I heard you could compile Windows executables in Linux (Ubuntu) with MinGW, well I downloaded MinGW for Linux and it is all installed right but when I go to compile:

oliver@FlowWD:~/Documents/C++/GTKTest$ i586-mingw32msvc-g++ main.cpp -o GTKTest.exe `pkg-config --libs --cflags gtk+-2.0`
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status

I can't seem to find anything on the web about it, you may want to relocate my post to the programming section but I think this is the best place due to the issue being with a Linux program.

Thanks for any help you can offer, Wolfy87.

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users