PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

EdgeLib with MinGW

Hello,

I'm trying to setup a multi-platform development environment on CodeBlocks. The Gp2X target is compiling fine, but the PC-x86 one is not. The PC-x86 target is configured to compile using MinGW. I need to know for what compiler was the libs under Edge/lib/pc-x86/ made. I ask that because the nomenclature is a bit different from that ones found on the mingw libs folder. mingw libs are generaly named libLIBNAME.a, and the ones inside lib/pc-x86/ are LIBNAME.lib. That seems like Visual C++ libs to me...

Are there any Edge libs for mingw?
Btw, here is what I get when compiling:
Code:

bin\PC\Debug\main.cpp.o:: linker errors
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===
Hi n2liquid,

EDGELIB for Windows Desktop is compiled with Visual C++ 6.0 and 2005. The linker errors appear because they are not compatible with the gcc compiler which is part of MinGW.

We recommend using Visual Studio 2005 express to compile your desktop projects. It can be downloaded for free here: http://msdn2.microsoft.com/nl-nl/vstudio/aa700736(en-us).aspx
edge, thanks for the reply, but I really don't want to use VC++.. Because if I do so, I won't be able to use pthreads, which is needed by Hekkus. Also, I won't be able to use STL, which my projects will heavely rely on. I mean, those are my thoughs, please correct me if I'm wrong :lol:

Isn't there any chance that I can get EdgeLib working with mingw? It is a much famous compiler, I think Elements Interactive should publish libs for it too.

Have a nice day :-)
Hi n2liquid,

Hekkus for Windows Desktop doesn't require pthreads, as it's using the native threading system of windows. Make sure to use xp library of Hekkus when building for Windows.

If I understand correctly, STL is also delivered with Visual Studio. Your project should be able to compile for windows using Visual Studio and for the GP2X using the gcc compiler of devkitpro.
edge wrote:Hi n2liquid,

Hekkus for Windows Desktop doesn't require pthreads, as it's using the native threading system of windows. Make sure to use xp library of Hekkus when building for Windows.

If I understand correctly, STL is also delivered with Visual Studio. Your project should be able to compile for windows using Visual Studio and for the GP2X using the gcc compiler of devkitpro.


yes, sorry, I thought VC++ didn't come with STL, but it does(I downloaded yesterday). Problem now is:
It seems that the Edge libraries for VC++ 2005 needs libc.lib, which doesn't come with VC++ anymore. Searching on the web I discovered that microsoft is trying to replace the old libraries to new, multi-threaded versions of them, and now you need to link with libcmt.lib, not libc.lib. But as the edgelibs inside pc-x86_vc2005 were compiled for VC2005, I ask myself why would they link with libc.lib which is not being distributed anymore with this version of VC. This error occurs when I link edge, edgerender, libz, and include EdgeMain.h in the project(if I don't include it, no errors occur).

What could it be?
I think it's a bug in Visual Studio, so it tries to load the default libc.lib library in every project. You can disable the library by opening the project settings (right click on your project in the solution explorer and select 'settings').

In the project settings select linker -> input and enter 'libc' in the ignore library list.
Hi,

I am new to edgelib and I am very frustated to have to use VS. I deeply wished there was a gnu version of edgelib. I was used to friendly Qt environment. So for what it's worth you have my full support in suggesting to Element Interactive to release a MinGW supported version of Edeglib.



n2liquid wrote:Hello,

I'm trying to setup a multi-platform development environment on CodeBlocks. The Gp2X target is compiling fine, but the PC-x86 one is not. The PC-x86 target is configured to compile using MinGW. I need to know for what compiler was the libs under Edge/lib/pc-x86/ made. I ask that because the nomenclature is a bit different from that ones found on the mingw libs folder. mingw libs are generaly named libLIBNAME.a, and the ones inside lib/pc-x86/ are LIBNAME.lib. That seems like Visual C++ libs to me...

Are there any Edge libs for mingw?
Btw, here is what I get when compiling:
Code:

bin\PC\Debug\main.cpp.o:: linker errors
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===