RE: CygWin - GCC compiler error
On 23 July 2006 12:37, MariLiza Koukouli wrote: Does this mean anything to anyone? It means that PBGroutines.c has failed to include some vital header or other. Whatever the word before off64_t on line 7 is, it should have been defined and it hasn't been. Hi Dave, thanks for replying. I would agree with you on that one, but then I have compiled and run the code in a normal Linux (SUSE) computer and it compiles and runs fine. Is it absolutely impossible that some GNU GCC setting is missing? from the .bashsrc file for e.g.? I am completely buffled. Thanks MariLiza No, it's more likely just due to the fact that different systems sometimes keep some of the system-dependent definitions in headers in different places, or name them differently, or don't implement quite all the exact same set of definitions. These minor discrepancies are usually worked around by using autoconf to detect all the details at compile time and allow for the differences. Does the project you're building use autoconf? What does it say at PBGroutines.c line 7 or PBGroutines.h line 9? I'm suspecting something related to 64-bit file i/o functions? cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: CygWin - GCC compiler error
Does this mean anything to anyone? It means that PBGroutines.c has failed to include some vital header or other. Whatever the word before off64_t on line 7 is, it should have been defined and it hasn't been. Hi Dave, thanks for replying. I would agree with you on that one, but then I have compiled and run the code in a normal Linux (SUSE) computer and it compiles and runs fine. Is it absolutely impossible that some GNU GCC setting is missing? from the .bashsrc file for e.g.? I am completely buffled. Thanks MariLiza __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
CygWin - GCC compiler error
Hi all, I am using the CygWin environent, CYGWIN_NT-5.1, i.e. on Windows XP. I am trying to compile a piece of code that contains both F77 and C subroutines. G77 works fine and compiles without problems but GCC complains about something that means absolutely nothing to me. I am using the following version: Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured) Thread model: posix gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) And the error I get is: * *** Make in pbio * make[1]: Entering directory `/cygdrive/d/VALIDATION/BUFR/ECMWF/bufr_000310/pbio' g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c blokex.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c pbbufr.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c pbcrex.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c pbgrib.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c pbionum.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c emosnum.F g77 -fno-second-underscore -I./ -Dlinux -DUSE_NO_POINTERS -g -fzeros -DTABLE_PATH=\/usr/local/lib\ -c pbpseu.F gcc -I./ -DTABLE_PATH=\/usr/local/lib\ -Dlinux -DFOPEN64 -c PBGroutines.c PBGroutines.c:7: error: parse error before off64_t PBGroutines.c:7: warning: data definition has no type or storage class In file included from PBGroutines.c:12: PBGroutines.h:9: error: parse error before ftello64 PBGroutines.h:9: warning: data definition has no type or storage class PBGroutines.h:28: error: parse error before off64_t PBGroutines.h:28: warning: no semicolon at end of struct or union PBGroutines.h:89: error: parse error before '}' token PBGroutines.h:89: warning: data definition has no type or storage class PBGroutines.c:90: error: parse error before '*' token PBGroutines.c:90: warning: data definition has no type or storage class PBGroutines.c:91: error: parse error before '*' token PBGroutines.c:91: warning: data definition has no type or storage class PBGroutines.c: In function `pbgindx': PBGroutines.c:127: error: parse error before space Does this mean anything to anyone? I think I found a similar problem people had using C++ but the specific compilation option that was proposed doesn't work for C. MANY THANKS, MariLiza __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: CygWin - GCC compiler error
On 21 July 2006 15:59, MariLiza Koukouli wrote: Hi all, I am using the CygWin environent, CYGWIN_NT-5.1, i.e. on Windows XP. I am trying to compile a piece of code that contains both F77 and C subroutines. G77 works fine and compiles without problems but GCC complains about something that means absolutely nothing to me. The reason that g77 works fine but gcc complains is because the code in the fortran files is correct, but the code in the particular C file you're compiling is buggy. gcc -I./ -DTABLE_PATH=\/usr/local/lib\ -Dlinux -DFOPEN64 -c PBGroutines.c PBGroutines.c:7: error: parse error before off64_t PBGroutines.c:7: warning: data definition has no type or storage class In file included from PBGroutines.c:12: PBGroutines.h:9: error: parse error before ftello64 PBGroutines.h:9: warning: data definition has no type or storage class PBGroutines.h:28: error: parse error before off64_t PBGroutines.h:28: warning: no semicolon at end of struct or union PBGroutines.h:89: error: parse error before '}' token PBGroutines.h:89: warning: data definition has no type or storage class PBGroutines.c:90: error: parse error before '*' token PBGroutines.c:90: warning: data definition has no type or storage class PBGroutines.c:91: error: parse error before '*' token PBGroutines.c:91: warning: data definition has no type or storage class PBGroutines.c: In function `pbgindx': PBGroutines.c:127: error: parse error before space Does this mean anything to anyone? It means that PBGroutines.c has failed to include some vital header or other. Whatever the word before off64_t on line 7 is, it should have been defined and it hasn't been. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/