Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Using IanM's DBPro interface with Dev-C++ 5, dll not compiling

Author
Message
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 19th Aug 2004 06:48 Edited at: 19th Aug 2004 06:50
I've been using IanM's C++ interface with Dev-C++ for a few weeks now with great success. However, I have recently reformatted my hard drive and had to reinstall Dev-C++. I think that the version I have installed now is a later one than the one I used before (although both were v5). Anywho, I installed the interface just as I did before (added the include directory in compiler options, added the "DBProInterfaceMingw.a" file in the project options, downloaded DirectX9 library, removed faulty character from dxfile.h), but when I try to compile my project, I keep getting the same error (see image below).



So, I tried to compile the example project that came with the interface and got the same error.

I found out that if I go to 'Project >> Project Options >> files', then select "dllmain.cpp" and uncheck the "include in linking" box, I don't get the error. However, the dll then doesn't work in DBP (understandably, seeing how the function declaration isn't linked with the stringtable).

Has anyone encountered this problem before? Does anyone know how I can overcome it? Is there some kind of package I can download to help? Or is it that this new version of Dev-C++ is not compatable with the interface?

Cheers in advance!


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Aug 2004 07:22
Can you post the Makefile.win that Dev-C++ creates?

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 19th Aug 2004 07:25 Edited at: 19th Aug 2004 07:26
Sure:

http://eatmuchpie.dbspot.com/Makefile.win

Hope that helps!


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Aug 2004 07:55
I was using the 4.9.8.10 version, so I've just updated to 4.9.9.0 and ... it still works.

Apart from a couple of differences in the files that we include (I have a few less) the makefiles generated by Dev-C++ are identical.

I'll try a clean install and see what that does - but that will be tomorrow.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 19th Aug 2004 17:47
Which packs have you installed for Dev-C++? It may be that you have one that I don't. I only have the Windows API and DirectX9 packs.

Which ones do you have?


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Aug 2004 02:19
I have the following packs installed:
Dev-C++_Map
DevCppHelp
DirectX9
GLibCHelp
ImageLib
Insight_Binary
libbzip2
OpenAL
OpenGLAPI
PackMaker
Tools
Win32API
WxWindows

I couldn't find the Kitchen sink package I'm not actually using any of these packages in the interface, so I don't understand what's going on.

Anyway, I'll secure my existing installation now, remove it and reinstall from the latest full setup. Be back in a little while.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Aug 2004 03:06
I've got the answer - it's a newer version of GCC.

Dev-C++ 4.9.8.10 and prior use GCC 3.2, while 4.9.9.0 uses GCC 3.3.1

I'll have to spend a little time on trying to find a fix and figuring out what to do next - I'm certainly not planning on supporting several different versions of Dev-c++

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 06:08
Ok, and what is this GCC of which you speak?

Also, do you have the installer for the earlier version of Dev-C++ for the time being?

Cheers!


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Aug 2004 08:16
GCC is the C++ compiler that runs behind the scenes. Technically, Dev-C++ is just the IDE, but people generally use that name for the complete package.

I can send the earlier pack and upgrade via email, but it totals about 15MB - can your email handle that much?

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 08:20 Edited at: 20th Aug 2004 08:23
I'm not entirely sure. Could you not just put it on your website temporarily? If not, then try sending it to:

checkpoint_router@btopenworld.com

Cheers!


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Aug 2004 08:25
I don't have 15MB free on my site. How about this instead ...

The 4.9.8.0 release is still available for download : http://sourceforge.net/project/showfiles.php?group_id=10639&package_id=12148

The update to .10 is on its way via email now

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 18:21
Cheers Ian. I installed that version you sent me, and set up the interface as per usuall, but when I compile it says that "the program could not be run" at line 2. Anyway, I followed the link and downloaded 4.9.8.0 , and it works fine again.

Really weird


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright

Login to post a reply

Server time is: 2024-09-22 12:35:22
Your offset time is: 2024-09-22 12:35:22