I''m trying to recompile wxRuby 0.6 using Borland''s C++ Compiler (version 5.5.1). So far I was able to do the following: 1) Recompile a working version of ruby V1.8.1 executable using bcc32 2) Recompile a working version of wxWindows 2.4.2 using bcc32 However for wxruby, I''m having some problems with the Makefile which I fixed. Now when I''m compiling the wxRuby wrapper classes like htmlprocessor.cpp i''m getting the following error: E2167: c:\tools\bcc\include\process.h 180: ''abort()'' was previously declared with the language ''C'' ... and so on for all the system calls. My interpretation of this is that there is an extern ''C'' somewhere surrounding those includes. However I do not understand why this is spit out at compile-time and not at link time... I''m sure this is a dumb error but I''m unable to figure out how to clear that up. Anybody here was able to do the same thing? Thanks for your help... _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Can you spit out the full error log of compiling one of the files? Thanks, Nick Martin Dufort wrote:> > I''m trying to recompile wxRuby 0.6 using Borland''s C++ Compiler (version > 5.5.1). > So far I was able to do the following: > 1) Recompile a working version of ruby V1.8.1 executable using bcc32 > 2) Recompile a working version of wxWindows 2.4.2 using bcc32 > > However for wxruby, I''m having some problems with the Makefile which I > fixed. > Now when I''m compiling the wxRuby wrapper classes like htmlprocessor.cpp > i''m getting the following > error: > E2167: c:\tools\bcc\include\process.h 180: ''abort()'' was previously > declared with the language ''C'' > ... > and so on for all the system calls. > My interpretation of this is that there is an extern ''C'' somewhere > surrounding those includes. However I do not understand > why this is spit out at compile-time and not at link time... > > I''m sure this is a dumb error but I''m unable to figure out how to clear > that up. Anybody here was able to do the same thing? > Thanks for your help... > > > ------------------------------------------------------------------------ > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
Martin Dufort
2005-Jan-20 19:36 UTC
[Wxruby-users] Compiling wxRuby 0.6 with Borland C++ Compiler
Sure here it is: [c:\tools\dev\wxruby-0.6-src\src]make -fMakefile htmlprocessor.obj MAKE Version 5.2 Copyright (c) 1987, 2000 Borland bcc32 -q -O -6 -w- -wsus -wcpt -wdup -wext -wrng -wrpt -wzdi -IC:\tools\dev\wxWindows-2.4.2/ include -IC:\tools\dev\wxWindows-2.4.2/contrib/include -IC:\tools\dev\wxWindows-2.4.2/lib/msw -DSTRI CT -DWIN32 -D__WIN32__ -D_WINDOWS -DWINVER=0x0400 /D__WIN95__ /D__WXMSW__ /D__WINDOWS__ -D__WXMSW__ -DNDEBUG -I. -IC:/tools/dev/ruby-bcc-182/lib/ruby/1.8/i386-bccwin32 -IC:/tools/dev/ruby-bcc-182/lib/ ruby/1.8/i386-bccwin32 -I. -I. -I../ -I../missing -P -c .\htmlprocessor.cpp .\htmlprocessor.cpp: Error E2167 c:\tools\dev\bcc55\include\process.h 180: ''abort()'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\process.h 191: ''exit(int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\process.h 192: ''_exit(int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\process.h 201: ''system(const char *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\process.h 218: ''_wsystem(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 299: ''atof(const char *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 324: ''abs(int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 327: ''labs(long)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 329: ''_atold(const char *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 337: ''_atoi64(const char *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 338: ''_i64toa(__int64,char *,int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 339: ''_ui64toa(unsigned __int64,char *,int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 340: ''_wtoi64(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 341: ''_i64tow(__int64,wchar_t *,int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 342: ''_ui64tow(unsigned __int64,wchar_t *,int)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 343: ''_wtof(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 344: ''_wtoi(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 345: ''_wtol(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\math.h 346: ''_wtold(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 276: ''_rtl_chmod(const char *,int,...)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 277: ''_chmod(const char *,int,...)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 298: ''_wunlink(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 299: ''_wremove(const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 300: ''_wrename(const wchar_t *,const wchar_t *)'' was previously declared with the language ''C'' Error E2167 c:\tools\dev\bcc55\include\io.h 302: ''_wmktemp(wchar_t *)'' was previously declared with the language ''C'' Error E2228 c:\tools\dev\bcc55\include\io.h 302: Too many error or warning messages *** 26 errors in Compile *** ** error 1 ** deleting htmlprocessor.obj On 20-Jan-05, at 7:09, Nick wrote:> > Can you spit out the full error log of compiling one of the files? > > Thanks, > > Nick > > Martin Dufort wrote: >> I''m trying to recompile wxRuby 0.6 using Borland''s C++ Compiler >> (version 5.5.1). >> So far I was able to do the following: >> 1) Recompile a working version of ruby V1.8.1 executable using bcc32 >> 2) Recompile a working version of wxWindows 2.4.2 using bcc32 >> However for wxruby, I''m having some problems with the Makefile which >> I fixed. >> Now when I''m compiling the wxRuby wrapper classes like >> htmlprocessor.cpp i''m getting the following >> error: >> E2167: c:\tools\bcc\include\process.h 180: ''abort()'' was previously >> declared with the language ''C'' >> ... >> and so on for all the system calls. >> My interpretation of this is that there is an extern ''C'' somewhere >> surrounding those includes. However I do not understand >> why this is spit out at compile-time and not at link time... >> I''m sure this is a dumb error but I''m unable to figure out how to >> clear that up. Anybody here was able to do the same thing? >> Thanks for your help... >> ---------------------------------------------------------------------- >> -- >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >