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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

wxWidgets and Borland Turbo C++ Explorer Edition

Post by T-Rex » Wed Oct 11, 2006 10:00 pm

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Fri Oct 13, 2006 1:27 pm

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 » Fri Oct 13, 2006 6:33 pm

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 » Sat Oct 14, 2006 11:38 pm

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Sun Oct 15, 2006 8:54 am

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

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Sun Oct 15, 2006 9:39 am

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

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

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Mon Oct 16, 2006 4:19 pm

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 » Tue Oct 17, 2006 12:40 pm

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

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Fri Oct 20, 2006 9:44 am

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

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: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Fri Oct 20, 2006 10:48 am

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