From: Chris Elliott Date: Tue, 26 Aug 2003 08:21:09 +0000 (+0000) Subject: remove references to Borland IDE and Cbuilder files X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/536284403df2179ff4bdab8b3ec650c8b88eb5b0 remove references to Borland IDE and Cbuilder files git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/tech/tn0004.htm b/docs/tech/tn0004.htm index ea58c4fd56..6015955a02 100644 --- a/docs/tech/tn0004.htm +++ b/docs/tech/tn0004.htm @@ -1,218 +1,19 @@ - + - - - - Compiling wx Samples in the Borland IDE + + + + Compiling wx Samples in the Borland IDE -

Compiling wxWindows samples with the Borland CBuilder

- -This document is available online here.

- -

-Before you begin

-This refers to the 2.1.16 and 2.1.15 wxWindows distribution. It -is my account of trying to compile the samples so I can use the Borland -IDE to edit/compile/debug. I have used CBuilder 1.00 (2 patches, nice and -fast), CBuilder 3 (slower), and CBuilder 4 (more recently). - -

Make sure that the wx distribution is extracted to a path with no spaces -in it, and preferably on the root of your drive. Borland's compilers sometimes -have problems with spaces and with the long paths which occur if you try -to place it in a tree like d:\compiler\gui\wx... -

-Part 1 Build the library

-Build the wx\wx32.lib and related files using the command line compiler -
Run a command prompt in the wx/src/msw directory and type -

set wxwin=pathtowx -
set bccdir=pathtobc4 -
make -f makefile.b32 -

In my case this I extracted the wx distribution in c:\ and the -compiler is in w:\borland\cb\bin so this looks: -

set wxwin=c:\wx -
set bccdir=w:\borland\cb -
make -f makefile.b32 -

If this doesn't compile, -

-If this doesn't link, - - -
-

-To make the samples

- -

-Solution 1

- -Download a zip file which contains modified -cpp, mak and bpr files - it will overwrite your wx distribution cpp files! - -

-Solution 2

-Creating the files by hand. This is for the calendar sample; you will -have to change the names for the other samples - -#----------------------------------------------------------------------------- -
#this is for Borland CBuilder IDE v1 and 3 -
#add a \ at the end of the lines if you editor breaks the long -lines up -
#copy this into notepad and save from there -
#----------------------------------------------------------------------------- -
!ifndef BCB -
BCB = $(MAKEDIR)\.. -
!endif -
PROJECT = calendar.exe -
OBJFILES = -
RESFILES = calendar.res -
RESDEPEN = $(RESFILES) -
LIBFILES = -
#----------------------------------------------------------------------------- -
CFLAG1 = -Od -v -a1 -c -
# -Od disable optimisations -v debug -a1 byte align -c compile -only (matches my make for the library) -
CFLAG2 = -DINC_OLE2;__WIN95__;__WXMSW__;__WINDOWS__;WIN32;__BIDE__;-I$(BCB)\include;$(BCB)\include\vcl;..\..\include; --H=BC32.CSM -
PFLAGS = -
RFLAGS = -DINC_OLE2;__WIN95__;__WXMSW__;__WINDOWS__;WIN32;__BIDE__; --I$(BCB)\include;..\..\include; -
LFLAGS = -L$(BCB)\lib;$(BCB)\lib\obj;..\..\lib -aa -Tpe -v -V4.0 --c -
IFLAGS = -
LINKER = ilink32 -
#----------------------------------------------------------------------------- -
ALLOBJ = c0w32.obj $(OBJFILES) -
ALLRES = $(RESFILES) -
ALLLIB = $(LIBFILES) vcl.lib xpm.lib wx32.lib ole2w32.lib import32.lib -odbc32.lib cw32mt.lib -
#you will need to add other libraries to the line above, eg the -jpeg.lib for image samples -
--------------------------------------------------------------------------- -
.autodepend -
  -

#----------------------------------------------------------------------------- -
$(PROJECT): $(OBJFILES) $(RESDEPEN) -

#end of file -
  -

-#ifdef __BIDE__ -
#define _NO_VCL -
#include "condefs.h" -
#define WinMain WinMain -
   // USEUNIT ("another.cpp"); // use a line like this -if you have more than one .cpp file -
    USERC ("calendar.rc"); -
#endif -
  -

In CBuilder 1 you can use Open Project to open the mak file and -edit/compile/debug. -

In CBuilder 3 and 4, then you can use Open Project and choose -the Open Borland CBuilder 1 Project from the drop down file types. The -system will modify the mak file and update it for you. -

Now try compiling it in the ide. -

-Hints:

- - - -

-Solution 3

- - -I found in CBuilder 1 that the idetomak utility did not manage -to convert all the samples, but idetobpr worked OK in CBuilder -3 and 4. I have a report that not all the bpr files made in CBuilder 4 -are correct -

-Error with ODBC32

-Sometimes you get an error saying that there are unresolved externals in -ODBC. The solution is to run a command prompt in your wx\lib directory -and use the implib command: -

C:\wx\lib>implib odbc32 c:\windows\system\odbc32.dll -

This creates the necessary library, odbc32.lib -

-Unresolved Problem

-In Borland CBuilder 1.00 (with linker service patch) I frequently -get an error -

Turbo Incremental Link  Version 1.0 Copyright (c) 1997 Borland -International -
Fatal: Assertion failed: typeInx < typeCnt at "ilinkdbg.c", -line 2060 -
Fatal: Access violation.  Program terminated. -
Error: Internal failure -- retrying link... -
Fatal: Assertion failed: typeInx < typeCnt at "ilinkdbg.c", -line 2060 -
Fatal: Access violation.  Program terminated. -

** error 2 ** deleting minimal.exe -

I have not been able to track down why sometimes this error occurs and -other times it is OK. I have not seen this in Cbuilder 3 or 4. -

-


-

Page updated on 31 May 2000 by Chris Elliott +Please use wxWindows 2.4.x this will not work with the new makefiles in +wxWindows 2.5.0
+
+
diff --git a/docs/tech/tn0007.txt b/docs/tech/tn0007.txt index 763c2afcaa..a9df28a31f 100644 --- a/docs/tech/tn0007.txt +++ b/docs/tech/tn0007.txt @@ -1,82 +1,9 @@ Using and modifying the BC++ IDE files ====================================== -Readme for wxWindows 2.0 Ide-files -First release Feb. 1999, detlev@reymann-online.de -1. What you can do with the BC++ IDE files -2. Where to install the files -3. How to modify them for your own needs -4. How to create IDE files for your own wxWindows-programs +Please use wxWindows 2.4.x - this is not currently supported in wxWindows 2.5.0 -1. What you can do with the IDE files -===================================== -There are two IDE files. src\bc32.ide should help you to -create the wxWindows libraries from within the Ide of Borland's -C++, v. 5.x. Note that this doesn't include debugging code: you -need to change the settings if you wish to include debug -information. Previously, bc32d.ide was supplied with debug -settings, but this proved to time-consuming to maintain. -2. Where to install the files -============================= - -You should copy the files for the libraries into the -src-directory of your wxWindows-Installation (e.g. C:\wxwin\src). -And the other file for the samples should be copied into the -samples-directory (e.g. C:\wxwin\samples). - -(If installing from setup.exe or wx2..._bc.zip the files -will be installed into the appropriate directories -automatically). - -3. How to modify them for your own needs -======================================== - -If your wxWindows-Installation resides on the same drive as your -Borland-Compiler and additionally the Borland-Installation is -the default (e.g. C:\BC5) then there should be no need to change -anything. Otherwise please change the path from within the ide -(Options->project->directories). Because we use the -$inherit-macro (Julian found the trick), this should work. - -To add a new sample to samples\bc32.ide, follow these steps: - -1. Choose Project->New target... and type in e.g. - samples\newsample. Press OK. -2. Static, no OWL, MFC or class libraries. Check Multithread - on. Press OK. -3. Right-click on the new node, choose Add node... and add - ..\lib\wx32.lib and ..\lib\xpm.lib. Add any other source - files you require. -4. Right-click on the new node, choose Edit Local Options.. and - add in Directories, specify the following: - - Include: $inherit;.\newsample - Library: $inherit; - Source: .\newsample - Intermediate: .\newsample - Final: .\newsample - -4. How to create IDE files for your own wxWindows-programs -========================================================== - -If you want to create an IDE file for your own wxWindows program, -please follow these steps. - -1. Create a new project from the menu file->new->project. -2. Deactivate all the standard-options, the only three things - that should be activated are "static" for the libraries, - the checkbox OLE (you can leave this checkbox unchecked, - but then you have to add the library \bc5\lib\ole2w32.lib - to your project), and the Multithread checkbox. -3. Add the include-path of wxWindows to the include-path in the - options-dialog (options->project->directories->include). The - result should be something like: - path_of_my_program;\bc5\include;\wxwin2\include; -4. Add the libraries to the project. Open the project-view and - activate your program. Then right-click and choose "add" and - select the wxWindows library (e.g. \wxwin\lib\wx32.lib). Also - add the xpm library.