wxWidgets and Borland Turbo C++ Explorer Edition Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

wxWidgets and Borland Turbo C++ Explorer Edition

Post by T-Rex »

Hello. :)

Has anybody compiled even minimal wxWidgets application using Borland Turbo C++ EE?

I managed how to build wxWidgets using new compiler. (I had to make some minor fixes of wxWidgets source code but I got it compiled). Also I compiled minimal sample using makefile.bcc but unfortunately I can't make it work when compiled from IDE.
Build process finishes successfully with no warnings or errors but I get access violation when executing the application built from IDE.
This problem also occured with CBuilder 5/6 but I solved it by using some #pragmas. Unfortunately such trick does not work with Turbo C++ EE (IDE adds some compiler parameters and I can't figure out how to remove them. It seems that the IDE forces using of this parameters)

So, if anybody have successfully compiled the minimal sample with IDE then please tell me how to do this... Some step-by-step tutorial could be useful for all of us.

If you have any thoughts regarding this problem then please, feel free to post them here. :)

Regards,
T-Rex
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

Still no posts here :(
Does it mean that nobody is interested in development with this IDE?
tiwag
Earned some good credits
Earned some good credits
Posts: 123
Joined: Tue Dec 21, 2004 8:51 pm
Location: Austria

Post by tiwag »

i tried it, but i don't like it.

CodeBlocks and MinGW gcc does a better job
-tiwag
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti »

I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

FIle -> New -> Other... -> Console Application
- Remove "Use VCL" flag
- Remove "Consle Application" flag

But you should add include and library paths to the project settings manually
tiwag
Earned some good credits
Earned some good credits
Posts: 123
Joined: Tue Dec 21, 2004 8:51 pm
Location: Austria

Post by tiwag »

emarti wrote:I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?
haha good joke - i don't think there exists any wizard for wx
-tiwag
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

haha good joke - i don't think there exists any wizard for wx
It is not very hard to create project template for IDE but first of all it would be good if we manage how to build minimal sample from IDE.
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti »

tiwag wrote:
emarti wrote:I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?
haha good joke - i don't think there exists any wizard for wx
:lol:
http://chgi.developpez.com/wxwindows/

I found wxwizard at this link but spanish. :cry: I beat one's brains to translate it.
Help me. :!:


Image
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti »

T-Rex wrote: It is not very hard to create project template for IDE but first of all it would be good if we manage how to build minimal sample from IDE.
Hi, T-Rex.

if you share minimal sample project for BCB, we found occuring errors.

Can you build it from console? (make -f makefile.bcc BUILD=release)
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

All wxWidgets samples work fine when built from console but do not work when built from IDE.
You just can use the source code of samples/minumal

there was a trick for BCB6

Code: Select all

#include <vector>
using namespace std;

#pragma option push -a1 -b -p-

#pragma comment(lib, "wx24ds_bcc.lib")
#pragma comment(lib, "winpng.lib")
#pragma comment(lib, "zlib.lib")

//all wxWidgets-related source code here
#pragma option pop

WINAPI WinMain(HINSTANCE hi, HINSTANCE, LPSTR, int)
{
  wxEntry(hi, NULL, NULL, 0, true);

  if ( wxTheApp )
    wxTheApp->OnExit();

  return 0;
}
//---------------------------------------------------------------------------
But we can avoid this trick since all samples work fine when built from command line.
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti »

Ok, I am trying it on BCB6 IDE.
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Re: wxWidgets and Borland Turbo C++ Explorer Edition

Post by NinjaNL »

T-Rex wrote:Hello. :)

Has anybody compiled even minimal wxWidgets application using Borland Turbo C++ EE?
I just managed to get controls working in TurboExplorer. Granted this was in debug mode, but it is progress.

I couldn't get the minimal sample working previously, I kept getting weird linker errors.

Anyone else mangaged this so far?
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

I have no problems with compilation and linking but executables do not work. They just crash at startup
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

T-Rex wrote:I have no problems with compilation and linking but executables do not work. They just crash at startup
No crash here. The programs run as desired.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

Could you write step-by-step plan of project configuration and wxWidgets build options?
Also one thing, do you have ServicePack2 for Windows XP installed on your machine?
Post Reply