Prof A Olowofoyeku (The African Chief) a écrit:
On 14 Feb 2003 at 12:01, Maurice Lombardi wrote:
Prof. A Olowofoyeku (The African Chief) a écrit:
You can obtain the binary of the Mingw version of GPC 20030209 (based on the "Mingw special" gcc-3.2.2 sources) from the Mingw web site:
If you want a link, here it is (it overlows the line, so you will need to join it all together manually):
http://prdownloads.sourceforge.net/mingw/gpc-20030209.i386-pc-mingw32- 1.tar.gz?download
PS: the sources are also there (inclusive of the gcc-3.2.2 patch that I used).
Tried it on W98. There is still this problem of /\ ...
What problem is this?
I have first downloaded your binaries, and installed them in my mingw tree (installed also gcc-3.2.2 from sourceforge). When trying to compile some pascal programs gpc answers that it cannot find as.exe, with a full path written with forward slashes. I then tried to compile gpc from your sources in W98, and it dies with similar message when xgpc wants to compile the first pascal program in the rts.
I have made something stupid. Compiled it with MSYS-1.0.8 (1.0.9 had a bug) and latest mingw tools from sourceforge, with your sources, except replacing in xm-mingw2.h #ifdef GPC by #ifdef TARGET_W9x (like in 2.95.x) and compiled with
../gcc-3.2.2-20030208-1/configure --verbose --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=pascal --disable-win32-registry --disable-shared --enable-sjlj-exceptions
make "CFLAGS=-O2" "BOOT_CFLAGS='-O2 -DTARGET_W9x'" "PFLAGS=-gstabs" "LDFLAGS=-s" bootstrap
This succeeded. I installed only gpc, not gcc The result is strange because gcc --print-search-dirs answers with forward slahes while
Correct (remember, you only installed gpc - so the original gcc binaries remain, and they would be using forward slashes).
gpc --print-search-dirs answers with backward slashes.
Correct.
But the test suite as well as some demo programs (notably crtdemo.pas which compiles also C code, compiled both within MSYS or in a bare DOS box) gives no error ... I do not understand ...
Were you expecting problems? If so, what problems were you expecting? There should be no error. The error would appear in GPC if you did not use "-DTARGET_W9x", because the GPC driver would have problems with the forward slash. The gcc driver will not have such problems, as a result of recent changes in it (which may or may not have been mirrored in the GPC driver - I didn't bother checking), which would compensate for either forward or back slashes.
Apparently they have not been mirrored. In fact I do not know what is made in the drivers, what in the real compilers, and what the latters are supposed to received from the formers.
Maurice