Platform specific (MinGW) linking?
Posted: Mon Nov 22, 2010 2:48 am
Hi
I'm pretty new to Linux (Ubuntu) development but have done quite a bit of work on Windows using Visual Studio, so I know the basics of C++, etc. I found CodeLite while looking for a fully-featured IDE for Linux-based development which had good debugger support, and I am more than happy with it!
I have been using the same CodeLite project files - via source control - on both my Ubuntu and Windows machines; using the MinGW tools on the latter. Everything was going really well with my little projects until I started to use regex. With MinGW I need to add the regex library (libregex.dll.a) to the Linker/Libraries option. But this doesn't build on Ubuntu.
Is there a way to tell CodeLite that I want to link to libregex.dll.a when I'm using MinGW, but not otherwise, without having to use a custom makefile (with a makefile I can use ifdef MSYSCON).
Thanks, Andy
I'm pretty new to Linux (Ubuntu) development but have done quite a bit of work on Windows using Visual Studio, so I know the basics of C++, etc. I found CodeLite while looking for a fully-featured IDE for Linux-based development which had good debugger support, and I am more than happy with it!
I have been using the same CodeLite project files - via source control - on both my Ubuntu and Windows machines; using the MinGW tools on the latter. Everything was going really well with my little projects until I started to use regex. With MinGW I need to add the regex library (libregex.dll.a) to the Linker/Libraries option. But this doesn't build on Ubuntu.
Is there a way to tell CodeLite that I want to link to libregex.dll.a when I'm using MinGW, but not otherwise, without having to use a custom makefile (with a makefile I can use ifdef MSYSCON).
Thanks, Andy