Page 1 of 2

wxWidgets and Borland Turbo C++ Explorer Edition

Posted: Wed Oct 11, 2006 10:00 pm
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

Posted: Fri Oct 13, 2006 1:27 pm
by T-Rex
Still no posts here :(
Does it mean that nobody is interested in development with this IDE?

Posted: Fri Oct 13, 2006 6:33 pm
by tiwag
i tried it, but i don't like it.

CodeBlocks and MinGW gcc does a better job

Posted: Sat Oct 14, 2006 11:38 pm
by emarti
I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?

Posted: Sun Oct 15, 2006 8:54 am
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

Posted: Sun Oct 15, 2006 9:13 am
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

Posted: Sun Oct 15, 2006 9:39 am
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.

Posted: Sun Oct 15, 2006 7:35 pm
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

Posted: Sun Oct 15, 2006 7:46 pm
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)

Posted: Mon Oct 16, 2006 4:19 pm
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.

Posted: Tue Oct 17, 2006 12:40 pm
by emarti
Ok, I am trying it on BCB6 IDE.

Re: wxWidgets and Borland Turbo C++ Explorer Edition

Posted: Fri Oct 20, 2006 9:29 am
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?

Posted: Fri Oct 20, 2006 9:44 am
by T-Rex
I have no problems with compilation and linking but executables do not work. They just crash at startup

Posted: Fri Oct 20, 2006 9:55 am
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.

Posted: Fri Oct 20, 2006 10:48 am
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?