0
0

I use Borland Builder and after many many hours have managed to build a nice player but… I have to include 4 additional files if I want it to pay on another system rtl’s ctl’s etc. My question is simple enough… If I am going to spend time learning C++ I want to use the best compiler even if it means changing horse mid stream. I don’t want hidden code or modules (except for fmod). I would prefer to hand code every little bit if it means I have control over the end product. So, which compiler is best suited to producing the best front end for fmod.

Note I would prefer a C, C++ compiler. but am open to suggestions

Any input would be appreciated. Mike

  • You must to post comments
0
0

MinGW has bit bit of a problem when building dlls: the __declspec(dllexport) and __declspec(dllimport) extensions don’t work :( You have to make a .def file or tell dlltool to export everything from the dll.
Perhaps try Borland too, there is a nice cross platform IDE (C++BuilderX) that can use gcc too, and therre is a free “personal edition” available for download on Borland’s site.

  • You must to post comments
0
0

From memory, go to your project options and uncheck ‘Dynamically link runtime libraries’ (I think that is what it is called) in Advanced Compiler tab and on the Packages tab, uncheck the checkbox at the bottom of the dialog.

This will allow you to build one executable with no extra libraries required, except for FMOD of course.

  • You must to post comments
0
0

Thanks lorien must chech out builderx… seems I have almost every piece of borland software ever produced.

?Has anyone ever compiled fmod with DevCpp of Ming? :roll:

  • You must to post comments
0
0

I use DevC++ 4 by Bloodshed software. It’s completely free, or at least
I think it still is. Includes IDE and everything. I think they have version 5
beta out now. [url:7ytwxc4n]http://bloodshed.net/dev/devcpp.html[/url:7ytwxc4n]

  • You must to post comments
0
0

[quote="lorien":3i86h3kt]MinGW has bit bit of a problem when building dlls: the __declspec(dllexport) and __declspec(dllimport) extensions don’t work :( You have to make a .def file or tell dlltool to export everything from the dll.
Perhaps try Borland too, there is a nice cross platform IDE (C++BuilderX) that can use gcc too, and therre is a free “personal edition” available for download on Borland’s site.[/quote:3i86h3kt]

I know that but you can export in __stdcall naming convention like Fmod ๐Ÿ˜‰

Michaelo>yes, without problems (under win32/linux)

  • You must to post comments
0
0

Much better than DevC++ (in my opinion), there is [url=http://www.parinya.ca/:1h48ulca]MingW Studio[/url:1h48ulca], a cross plateform IDE.

  • You must to post comments
0
0

KarLKoX,

Which did you use DevCpp or MingGW.

I can compile with both without errors but when I include the resource (which I’m not sure if I modded correctly) all I get is an empty screen. The program is running but I see nothing. I know it needs the resource file to display but… Could you let me know how to use / mod the resource file to get it to work.

Mike

  • You must to post comments
0
0

Many thanks Sly

I unchecked the Build with runtime packages and it worked… as expected the file / program size doubled.

Thanks for the info on alternatives nci/KarLKoX, Have down loaded Dec-Cpp earlier this week and I note its uses the MingW compiler or at least is built around it. It also seem to be able to use Gcc.

Will try MingW Studio next.

Mike

  • You must to post comments
0
0

I use both of them (devc++ and mingw) but, wich resource file are you talking about ?

  • You must to post comments
0
0

Have tried both of these and they appear about the same. They have some positives and negatives.

DevCpp is a little better looking and many of the features save time over those of MinGW on the other hand MinGW is more complete, including more samples for idiots like myself… So I will use both!

I have come across the same proble in both! That is they return an error if I call functions from MS libraries… In particular I get

undefined reference to timeSetEvent@20
and
undefined reference to timeKillEvent@4

I have included the required library ‘winmm.lib’ (think this is the correct one) to no avail.

Any ideas?

Mike

  • You must to post comments
0
0

fmod.rc

A Microsoft Developer Studio generated resource script.

I can’t use it as is because PUSHBUTTON and some other identifiers are not recognised. I use MingGW’s resource editor to modify it and it replaces unknow identifiers with the CONTROL identifier. It will compile in both Ming & Dev but no output…

But I (as usual) could be wrong.

Mike

  • You must to post comments
0
0

With DevC++, it is -lwinmm

  • You must to post comments
0
0

I don’t use resource file with mingw, i code the gui by hand though gui toolkit (GTK).
Do you have your WinMain + the message loop + the wndProc ?

  • You must to post comments
0
0

Surely the command is -lwinmm.
But the file name (without the -l link directive) is winmm.lib

Then again maybe theres another library or perhaps I put it in the wrong place.

I assume it is part of a microsoft library. I added the following in DevCpp

In Settings -> Link -> Libraries I have added the following

bass.lib, winmm.lib

bass.lib being part of my test code.

But I still get the error.

Completely lost :(

Mike

  • You must to post comments
0
0

I know nothing of the GUI tool kit. Where do I get it?

Am using the exact code as supplied in demo of fmod. Also I have written a simple player from scratch using Builder, it’s looking good but I like the idea of using Ming and Dev… Perhaps I should try to port my own working code instead….?

It may take time but time is one of the few remaining things no one is trying to bill me for. ๐Ÿ˜‰

I will check out the GUI tool you mentioned if I can find it.

Mike

  • You must to post comments
0
0

The file is libwinmm.a for gcc so you MUST pass the -lwinmm command … just try it.

  • You must to post comments
0
0

[quote="Michaelo":3q42eei4]I know nothing of the GUI tool kit. Where do I get it?
[/quote:3q42eei4]
I just says that i used to use GUI toolkit no that you have to do it :)

[quote="Michaelo":3q42eei4]Also I have written a simple player from scratch using Builder, it’s looking good but I like the idea of using Ming and Dev… Perhaps I should try to port my own working code instead….?
[/quote:3q42eei4]

You can’t use the code from Borland as this IDE doesn’t produce C/C++ standard code (C99, ANSI …), you must delete all Borland related code but the best thing to do is to rewrite the code to gcc.

[quote="Michaelo":3q42eei4]
It may take time but time is one of the few remaining things no one is trying to bill me for. ๐Ÿ˜‰
[/quote:3q42eei4]

Yes, it will take some time but you ll learn a lot about how to code your own gui without those gui builders :)

  • You must to post comments
0
0

I was including the -lwinmm command but not the library. Added libwinmm.a and your right it works. ๐Ÿ˜†

Once again… Many Thanks KarLKoX

  • You must to post comments
0
0

๐Ÿ˜‰

  • You must to post comments
Showing 19 results
Your Answer

Please first to submit.