public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19281] New: file format not recognized; treating as linker script
@ 2005-01-05 21:53 jeff at connectrf dot com
  2005-01-05 21:56 ` [Bug c++/19281] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-05 21:53 UTC (permalink / raw)
  To: gcc-bugs

Compile seems to work fine but will not link.  Any thoughts?



**** Full rebuild of configuration Release for project Auth ****

make -k clean all 
rm -rf     AuthTest.o AuthTestDlg.o stdafx.o       AuthTest.d AuthTestDlg.d
stdafx.d   Auth.exe
Building file: ../AuthTest.cpp
g++ -O3 -Wall -fpreprocessed -M -v -oAuthTest.o ../AuthTest.cpp
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -M
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../AuthTest.cpp -oAuthTest.o -Wall -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -P
-M -MM -MG -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3
-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../AuthTest.cpp -Wall -w -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Finished building: ../AuthTest.cpp
 
Building file: ../AuthTestDlg.cpp
g++ -O3 -Wall -fpreprocessed -M -v -oAuthTestDlg.o ../AuthTestDlg.cpp
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -M
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../AuthTestDlg.cpp -oAuthTestDlg.o -Wall -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -P
-M -MM -MG -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3
-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../AuthTestDlg.cpp -Wall -w -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Finished building: ../AuthTestDlg.cpp
 
Building file: ../stdafx.cpp
g++ -O3 -Wall -fpreprocessed -M -v -ostdafx.o ../stdafx.cpp
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -M
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../stdafx.cpp -ostdafx.o -Wall -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -P
-M -MM -MG -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3
-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
../stdafx.cpp -Wall -w -fpreprocessed -O3
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3.3
 /usr/include/c++/3.3.3/i686-pc-cygwin
 /usr/include/c++/3.3.3/backward
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
 /usr/include/w32api
End of search list.
Finished building: ../stdafx.cpp
 
Building target: Auth.exe
g++ -v -o Auth.exe     AuthTest.o AuthTestDlg.o stdafx.o    
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/collect2.exe -Bdynamic
--dll-search-prefix=cyg -o Auth.exe
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../crt0.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o
-L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3
-L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../.. AuthTest.o AuthTestDlg.o
stdafx.o -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtend.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:AuthTest.o:
file format not recognized; treating as linker script
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:AuthTest.o:1:
syntax error
collect2: ld returned 1 exit status
make: *** [Auth.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project Auth

-- 
           Summary: file format not recognized; treating as linker script
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jeff at connectrf dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: Windows 2000, I686
  GCC host triplet: Windows 2000, I686
GCC target triplet: Windows 2000, I686


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
@ 2005-01-05 21:56 ` pinskia at gcc dot gnu dot org
  2005-01-06 15:33 ` jeff at connectrf dot com
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-05 21:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-05 21:56 -------
This is not a gcc bug, either this is your bug and the .o file is not an object file or this is a binutils bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
  2005-01-05 21:56 ` [Bug c++/19281] " pinskia at gcc dot gnu dot org
@ 2005-01-06 15:33 ` jeff at connectrf dot com
  2005-01-06 15:42 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-06 15:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-06 15:33 -------
(In reply to comment #1)
> This is not a gcc bug, either this is your bug and the .o file is not an
object file or this is a binutils bug.

Andrew, then perhaps you can explain why the exact same code compiles, links and
runs fine in a Microsoft environment?  So the only thing that has changed is I
am using GCC....  Hmmmmm..

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
  2005-01-05 21:56 ` [Bug c++/19281] " pinskia at gcc dot gnu dot org
  2005-01-06 15:33 ` jeff at connectrf dot com
@ 2005-01-06 15:42 ` pinskia at gcc dot gnu dot org
  2005-01-10 18:46 ` jeff at connectrf dot com
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-06 15:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-06 15:42 -------
(In reply to comment #2)
> (In reply to comment #1)
> > This is not a gcc bug, either this is your bug and the .o file is not an
> object file or this is a binutils bug.
> 
> Andrew, then perhaps you can explain why the exact same code compiles, links and
> runs fine in a Microsoft environment?  So the only thing that has changed is I
> am using GCC....  Hmmmmm..

But GCC is only the compiler, not the assembler and linker, report this to the binutils project, <http://
sourceware.org/bugzilla/> which controls both the assembler and the linker, yes this is confusing but 
correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (2 preceding siblings ...)
  2005-01-06 15:42 ` pinskia at gcc dot gnu dot org
@ 2005-01-10 18:46 ` jeff at connectrf dot com
  2005-01-10 19:06 ` [Bug driver/19281] " pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-10 18:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-10 18:45 -------
Andrew,

A view from the ld folks.  They believe that the ld is failing due to the
-fpreprocessed switch not producing the .o file..

------- Additional Comments From nickc at redhat dot com  2005-01-10 17:57 -------
Subject: Re:  file format not recognized; treating as linker script

Hi Jeff,


>> I tried it with -c same result.  Also, when I ran file on it it says ASCII text.


Hmm, what size is the file ?


>> Here are the messages
>> 
>> **** Full rebuild of configuration Release for project Auth ****

Note - I would strongly suggest that you halt the build process after 
the creation of the first object file.  Things have definitely gone 
wrong by this point.  We are not looking at a linker bug, we are looking 
at a gcc bug or possibly a gas bug.

There appears to be something very odd going on when an object file is 
built:



>> g++ -O3 -Wall -c -fpreprocessed -M -v -oAuthTest.o ../AuthTest.cpp


So G++ is invoked on AuthTest.cpp.  I assume that the "-fpreprocessed" 
switch is correct and that this source file has already been pre-processed ?


>> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
>> Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
>> --without-included-gettext --enable-libgcj --with-system-zlib
>> --enable-interpreter --enable-threads=posix --enable-java-gc=boehm
>> --enable-sjlj-exceptions --disable-version-specific-runtime-libs
>> --disable-win32-registry
>> Thread model: posix
>> gcc version 3.3.3 (cygwin special)
>>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -M
>> -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__CYGWIN32__
>> -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
>> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
>>
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
>> ../AuthTest.cpp -oAuthTest.o -Wall -fpreprocessed -O3


So cc1plus.exe is run once...


>> ignoring nonexistent directory "/usr/local/include"
>> ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
>> ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
>> #include "..." search starts here:
>> #include <...> search starts here:
>>  /usr/include/c++/3.3.3
>>  /usr/include/c++/3.3.3/i686-pc-cygwin
>>  /usr/include/c++/3.3.3/backward
>>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
>>  /usr/include
>>  /usr/include/w32api
>> End of search list.
>> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
>> Configured with: /gcc/gcc-3.3.3-3/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,pascal --enable-nls
>> --without-included-gettext --enable-libgcj --with-system-zlib
>> --enable-interpreter --enable-threads=posix --enable-java-gc=boehm
>> --enable-sjlj-exceptions --disable-version-specific-runtime-libs
>> --disable-win32-registry
>> Thread model: posix
>> gcc version 3.3.3 (cygwin special)
>>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -E -D__GNUG__=3 -quiet -v -P
>> -M -MM -MG -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3
>> -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
>> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../include/w32api -idirafter
>>
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/lib/../../include/w32api
>> ../AuthTest.cpp -Wall -w -fpreprocessed -O3


... and then it is run again with the -o switch missing ?  Why ?


>> ignoring nonexistent directory "/usr/local/include"
>> ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
>> ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
>> #include "..." search starts here:
>> #include <...> search starts here:
>>  /usr/include/c++/3.3.3
>>  /usr/include/c++/3.3.3/i686-pc-cygwin
>>  /usr/include/c++/3.3.3/backward
>>  /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
>>  /usr/include
>>  /usr/include/w32api
>> End of search list.
>> Finished building: ../AuthTest.cpp


... and yet GAS has not been invoked to turn the assembler output of the 
cc1plus.exe program into an object file.

Perhaps ... the g++ driver program is picking the wrong executable to 
use to convert assembler into binary ?

Cheers
   Nick



-- http://sources.redhat.com/bugzilla/show_bug.cgi?id=641 ------- You are
receiving this mail because: ------- You reported the bug, or are watching the
reporter. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (3 preceding siblings ...)
  2005-01-10 18:46 ` jeff at connectrf dot com
@ 2005-01-10 19:06 ` pinskia at gcc dot gnu dot org
  2005-01-10 19:09 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-10 19:06 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |driver


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (4 preceding siblings ...)
  2005-01-10 19:06 ` [Bug driver/19281] " pinskia at gcc dot gnu dot org
@ 2005-01-10 19:09 ` pinskia at gcc dot gnu dot org
  2005-01-11 17:44 ` jeff at connectrf dot com
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-10 19:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-10 19:09 -------
Invalid, -M -o t, ouputs the depenciences in t.  So again this is not a bug in the compiler but in the 
makefile.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (5 preceding siblings ...)
  2005-01-10 19:09 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 17:44 ` jeff at connectrf dot com
  2005-01-11 18:55 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-11 17:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-11 17:44 -------
Andrew,

What compiler option flag do I need to set for forward Declartions then?  _M was
taking care of those errors however it is not producing the .o?  Is there a
Crossrefrence of compiler options between MC VC++ and GCC?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (6 preceding siblings ...)
  2005-01-11 17:44 ` jeff at connectrf dot com
@ 2005-01-11 18:55 ` pinskia at gcc dot gnu dot org
  2005-01-11 19:25 ` jeff at connectrf dot com
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 18:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 18:55 -------
I have no idea what option you are talking about?
Look at the info/man pages of ld and gcc.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (7 preceding siblings ...)
  2005-01-11 18:55 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 19:25 ` jeff at connectrf dot com
  2005-01-11 19:31 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-11 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-11 19:24 -------
Andrew, let me try again.  BTW I have looked at the man pages for both gcc and
ld, I must say they are clear as mud, but then most are.

If I take the defaults, in CDT, I receive the errors attached below.  If I add
the options -fpreprocessed and -M as miscellaneous options, as I found in the
man pages,  the files compile without issue, but gcc does not create the proper
object files for linking.

So what gcc options would be required for forward declarations and standard
#include's?

Here is the makefile...
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

ROOT := ..

-include $(ROOT)/makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include $(SUBDIRS:%=%/subdir.mk)
-include objects.mk
-include $(DEPS)
-include $(ROOT)/makefile.defs

all: Auth.exe

Auth.exe: $(OBJS)
	@echo 'Building target: $@'
	g++  -o $@ $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building: $@'

clean:
	-$(RM) $(OBJS) $(DEPS) Auth.exe

.PHONY: all clean dependents

-include $(ROOT)/makefile.targets



**** Full rebuild of configuration Release for project Auth ****

make -k clean all 
rm -rf     authtest.o authtestdlg.o stdafx.o       authtest.d authtestdlg.d
stdafx.d   Auth.exe
Building file: ../authtest.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -oauthtest.o ../authtest.cpp
In file included from ../authtest.cpp:4:
../AuthTest.h:4:9: warning: #pragma once is obsolete
../AuthTest.h:7:10: #error include 'stdafx.h' before including this file for PCH
In file included from ../authtest.cpp:4:
../AuthTest.h:18: error: parse error before `{' token
../AuthTest.h:29: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP'
with no type
../AuthTest.h: In function `int DECLARE_MESSAGE_MAP()':
../AuthTest.h:29: error: parse error before `}' token
../AuthTest.h:31:28: warning: no newline at end of file
In file included from ../authtest.cpp:5:
../AuthTestDlg.h:9: error: parse error before `{' token
../AuthTestDlg.h:17: error: parse error before `protected'
../AuthTestDlg.h:26: error: syntax error before `(' token
../AuthTestDlg.h:27: error: syntax error before `void'
../AuthTestDlg.h:28: error: syntax error before `void'
../AuthTestDlg.h:29: error: parse error before `(' token
../AuthTestDlg.h:31: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP'
with no type
../AuthTestDlg.h: In function `int DECLARE_MESSAGE_MAP()':
../AuthTestDlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTest.h:29: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../AuthTestDlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTest.h:29: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../AuthTestDlg.h:31: error: parse error before `public'
../AuthTestDlg.h:33: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:35: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:37: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:41: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:42: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:43: error: syntax error before `void'
../AuthTestDlg.h:44: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:45: error: parse error before `}' token
../authtest.cpp:14: error: type specifier omitted for parameter `CWinApp'
../authtest.cpp:15: error: ISO C++ forbids declaration of `BEGIN_MESSAGE_MAP'
with no type
../authtest.cpp: In function `int BEGIN_MESSAGE_MAP(CAuthTestApp)':
../authtest.cpp:15: error: `<anonymous>' has incomplete type
../AuthTest.h:17: error: forward declaration of `class CAuthTestApp'
../authtest.cpp:15: error: parse error before `(' token
../authtest.cpp:15: error: `ID_HELP' undeclared (first use this function)
../authtest.cpp:15: error: (Each undeclared identifier is reported only once for
each function it appears in.)
../authtest.cpp:15: error: `CWinApp' undeclared (first use this function)
../authtest.cpp:15: error: parse error before `::' token
../authtest.cpp:16: error: ISO C++ forbids declaration of `ON_COMMAND' with no type
../authtest.cpp: In function `int ON_COMMAND(...)':
../authtest.cpp:21: error: ISO C++ forbids declaration of `END_MESSAGE_MAP' with
no type
../authtest.cpp: In function `int END_MESSAGE_MAP()':
../authtest.cpp:22: error: invalid use of undefined type `class CAuthTestApp'
../AuthTest.h:17: error: forward declaration of `class CAuthTestApp'
../authtest.cpp: In constructor `CAuthTestApp::CAuthTestApp()':
../authtest.cpp:30: error: aggregate `CAuthTestApp theApp' has incomplete type
and cannot be defined
../authtest.cpp:35: error: syntax error before `::' token
../authtest.cpp:42: error: syntax error before `::' token
../authtest.cpp:51: error: `_T' undeclared (first use this function)
../authtest.cpp:51: error: ISO C++ forbids declaration of `SetRegistryKey' with
no type
../authtest.cpp:51: confused by earlier errors, bailing out
make: *** [authtest.o] Error 1
Building file: ../authtestdlg.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -oauthtestdlg.o ../authtestdlg.cpp
In file included from ../authtestdlg.cpp:3:
../AuthTest.h:4:9: warning: #pragma once is obsolete
../AuthTest.h:7:10: #error include 'stdafx.h' before including this file for PCH
In file included from ../authtestdlg.cpp:3:
../AuthTest.h:18: error: parse error before `{' token
../AuthTest.h:29: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP'
with no type
../AuthTest.h: In function `int DECLARE_MESSAGE_MAP()':
../AuthTest.h:29: error: parse error before `}' token
../AuthTest.h:31:28: warning: no newline at end of file
In file included from ../authtestdlg.cpp:4:
../AuthTestDlg.h:9: error: parse error before `{' token
../AuthTestDlg.h:17: error: parse error before `protected'
../AuthTestDlg.h:26: error: syntax error before `(' token
../AuthTestDlg.h:27: error: syntax error before `void'
../AuthTestDlg.h:28: error: syntax error before `void'
../AuthTestDlg.h:29: error: parse error before `(' token
../AuthTestDlg.h:31: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP'
with no type
../AuthTestDlg.h: In function `int DECLARE_MESSAGE_MAP()':
../AuthTestDlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTest.h:29: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../AuthTestDlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTest.h:29: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../AuthTestDlg.h:31: error: parse error before `public'
../AuthTestDlg.h:33: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:35: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:37: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:41: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:42: error: 'BOOL' is used as a type, but is not defined as a type.
../AuthTestDlg.h:43: error: syntax error before `void'
../AuthTestDlg.h:44: error: 'CString' is used as a type, but is not defined as a
type.
../AuthTestDlg.h:45: error: parse error before `}' token
In file included from ../authtestdlg.cpp:5:
../authtestdlg.h:8: error: declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg' in `int DECLARE_MESSAGE_MAP()' which does
not enclose `int DECLARE_MESSAGE_MAP()'
../authtestdlg.h:9: error: parse error before `{' token
../authtestdlg.h:17: error: parse error before `protected'
../authtestdlg.h:26: error: syntax error before `(' token
../authtestdlg.h:27: error: syntax error before `void'
../authtestdlg.h:28: error: syntax error before `void'
../authtestdlg.h:29: error: parse error before `(' token
../authtestdlg.h:31: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP'
with no type
../authtestdlg.h: In function `int DECLARE_MESSAGE_MAP()':
../authtestdlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTestDlg.h:31: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../authtestdlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTestDlg.h:31: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../authtestdlg.h:31: error: redefinition of `int DECLARE_MESSAGE_MAP()'
../AuthTest.h:29: error: `int DECLARE_MESSAGE_MAP()' previously defined here
../authtestdlg.h:31: error: parse error before `public'
../authtestdlg.h:33: error: 'CString' is used as a type, but is not defined as a
type.
../authtestdlg.h:34: error: redefinition of `int m_Product'
../AuthTestDlg.h:34: error: `int m_Product' previously declared here
../authtestdlg.h:35: error: 'CString' is used as a type, but is not defined as a
type.
../authtestdlg.h:36: error: redefinition of `int m_Vendor'
../AuthTestDlg.h:36: error: `int m_Vendor' previously declared here
../authtestdlg.h:37: error: 'BOOL' is used as a type, but is not defined as a type.
../authtestdlg.h:38: error: redefinition of `int m_Year'
../AuthTestDlg.h:38: error: `int m_Year' previously declared here
../authtestdlg.h:39: error: redefinition of `int m_Quarter'
../AuthTestDlg.h:39: error: `int m_Quarter' previously declared here
../authtestdlg.h:40: error: redefinition of `int m_Terminals'
../AuthTestDlg.h:40: error: `int m_Terminals' previously declared here
../authtestdlg.h:41: error: 'BOOL' is used as a type, but is not defined as a type.
../authtestdlg.h:42: error: 'BOOL' is used as a type, but is not defined as a type.
../authtestdlg.h:43: error: syntax error before `void'
../authtestdlg.h:44: error: 'CString' is used as a type, but is not defined as a
type.
../authtestdlg.h:45: error: parse error before `}' token
In file included from ../authtestdlg.cpp:6:
../idmach02.h:51: error: non-local function `void
id_set_info_2(DECLARE_MESSAGE_MAP()::id2_info*)' uses local type
`DECLARE_MESSAGE_MAP()::id2_info'
../idmach02.h:52: error: non-local function `void
id_get_info_2(DECLARE_MESSAGE_MAP()::id2_info*)' uses local type
`DECLARE_MESSAGE_MAP()::id2_info'
../idmach02.h:68: error: non-local function `int id_approve2(char*, char*, int*,
int, int, int*, DECLARE_MESSAGE_MAP()::id2_info*)' uses local type
`DECLARE_MESSAGE_MAP()::id2_info'
../idmach02.h:69: error: non-local function `int get_authorize2(int*, int, int,
int*, DECLARE_MESSAGE_MAP()::id2_info*)' uses local type
`DECLARE_MESSAGE_MAP()::id2_info'
../authtestdlg.cpp:8: error: non-local function `int id_test2(char*,
DECLARE_MESSAGE_MAP()::id2_info*)' uses local type `DECLARE_MESSAGE_MAP()::id2_info'
../authtestdlg.cpp:18: error: parse error before `{' token
../authtestdlg.cpp:25: error: parse error before `protected'
../authtestdlg.cpp:33: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp:17: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp: In constructor `DECLARE_MESSAGE_MAP()::CAboutDlg::CAboutDlg()':
../authtestdlg.cpp:33: error: class `DECLARE_MESSAGE_MAP()::CAboutDlg' does not
have any field named `CDialog'
../authtestdlg.cpp:33: error: incomplete type `DECLARE_MESSAGE_MAP()::CAboutDlg'
does not have member `IDD'
../authtestdlg.cpp:37: error: `CDataExchange' undeclared (first use this function)
../authtestdlg.cpp:37: error: (Each undeclared identifier is reported only once
for each function it appears in.)
../authtestdlg.cpp:37: error: `pDX' undeclared (first use this function)
../authtestdlg.cpp:38: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp:17: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp:38: error: invalid declarator
../authtestdlg.cpp:38: error: syntax error before `{' token
../authtestdlg.cpp:42: error: type specifier omitted for parameter `CDialog'
../authtestdlg.cpp:43: error: ISO C++ forbids declaration of `BEGIN_MESSAGE_MAP'
with no type
../authtestdlg.cpp:43: error: non-local function `int
BEGIN_MESSAGE_MAP(DECLARE_MESSAGE_MAP()::CAboutDlg)' uses local type
`DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp: In function `int
BEGIN_MESSAGE_MAP(DECLARE_MESSAGE_MAP()::CAboutDlg)':
../authtestdlg.cpp:43: error: `<anonymous>' has incomplete type
../authtestdlg.cpp:17: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAboutDlg'
../authtestdlg.cpp:43: error: parse error before `(' token
../authtestdlg.cpp:50: error: ISO C++ forbids declaration of `END_MESSAGE_MAP'
with no type
../authtestdlg.cpp: In function `int END_MESSAGE_MAP()':
../authtestdlg.cpp:50: error: `CWnd' undeclared (first use this function)
../authtestdlg.cpp:50: error: `pParent' undeclared (first use this function)
../authtestdlg.cpp:51: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp:51: error: invalid declarator
../authtestdlg.cpp:51: error: syntax error before `:' token
../authtestdlg.cpp:69: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp:69: error: invalid declarator
../authtestdlg.cpp:69: error: syntax error before `{' token
../authtestdlg.cpp:71: error: `m_AuthCode' undeclared (first use this function)
../authtestdlg.cpp:71: error: ISO C++ forbids declaration of `DDX_Text' with no type
../authtestdlg.cpp:71: error: initializer list being treated as compound expression
../authtestdlg.cpp:72: error: `m_MachineId' undeclared (first use this function)
../authtestdlg.cpp:72: error: ISO C++ forbids declaration of `DDX_Text' with no type
../authtestdlg.cpp:72: error: redefinition of `int DDX_Text'
../authtestdlg.cpp:71: error: `int DDX_Text' previously defined here
../authtestdlg.cpp:72: error: initializer list being treated as compound expression
../authtestdlg.cpp:73: error: ISO C++ forbids declaration of `DDX_CBIndex' with
no type
../authtestdlg.cpp:73: error: initializer list being treated as compound expression
../authtestdlg.cpp:74: error: `m_Version' undeclared (first use this function)
../authtestdlg.cpp:74: error: ISO C++ forbids declaration of `DDX_Text' with no type
../authtestdlg.cpp:74: error: redefinition of `int DDX_Text'
../authtestdlg.cpp:72: error: `int DDX_Text' previously defined here
../authtestdlg.cpp:74: error: initializer list being treated as compound expression
../authtestdlg.cpp:75: error: ISO C++ forbids declaration of `DDX_CBIndex' with
no type
../authtestdlg.cpp:75: error: redefinition of `int DDX_CBIndex'
../authtestdlg.cpp:73: error: `int DDX_CBIndex' previously defined here
../authtestdlg.cpp:75: error: initializer list being treated as compound expression
../authtestdlg.cpp:76: error: `m_Expires' undeclared (first use this function)
../authtestdlg.cpp:76: error: ISO C++ forbids declaration of `DDX_Check' with no
type
../authtestdlg.cpp:76: error: initializer list being treated as compound expression
../authtestdlg.cpp:77: error: ISO C++ forbids declaration of `DDX_CBIndex' with
no type
../authtestdlg.cpp:77: error: redefinition of `int DDX_CBIndex'
../authtestdlg.cpp:75: error: `int DDX_CBIndex' previously defined here
../authtestdlg.cpp:77: error: initializer list being treated as compound expression
../authtestdlg.cpp:78: error: ISO C++ forbids declaration of `DDX_CBIndex' with
no type
../authtestdlg.cpp:78: error: redefinition of `int DDX_CBIndex'
../authtestdlg.cpp:77: error: `int DDX_CBIndex' previously defined here
../authtestdlg.cpp:78: error: initializer list being treated as compound expression
../authtestdlg.cpp:79: error: ISO C++ forbids declaration of `DDX_Text' with no type
../authtestdlg.cpp:79: error: redefinition of `int DDX_Text'
../authtestdlg.cpp:74: error: `int DDX_Text' previously defined here
../authtestdlg.cpp:79: error: initializer list being treated as compound expression
../authtestdlg.cpp:80: error: `m_Formatter' undeclared (first use this function)
../authtestdlg.cpp:80: error: ISO C++ forbids declaration of `DDX_Check' with no
type
../authtestdlg.cpp:80: error: redefinition of `int DDX_Check'
../authtestdlg.cpp:76: error: `int DDX_Check' previously defined here
../authtestdlg.cpp:80: error: initializer list being treated as compound expression
../authtestdlg.cpp:81: error: `m_Plus' undeclared (first use this function)
../authtestdlg.cpp:81: error: ISO C++ forbids declaration of `DDX_Check' with no
type
../authtestdlg.cpp:81: error: redefinition of `int DDX_Check'
../authtestdlg.cpp:80: error: `int DDX_Check' previously defined here
../authtestdlg.cpp:81: error: initializer list being treated as compound expression
../authtestdlg.cpp:82: error: `m_Valid' undeclared (first use this function)
../authtestdlg.cpp:82: error: ISO C++ forbids declaration of `DDX_Text' with no type
../authtestdlg.cpp:82: error: redefinition of `int DDX_Text'
../authtestdlg.cpp:79: error: `int DDX_Text' previously defined here
../authtestdlg.cpp:82: error: initializer list being treated as compound expression
../authtestdlg.cpp:83: error: parse error before `}' token
../authtestdlg.cpp:85: error: type specifier omitted for parameter `CDialog'
../authtestdlg.cpp:86: error: ISO C++ forbids declaration of `BEGIN_MESSAGE_MAP'
with no type
../authtestdlg.cpp:86: error: non-local function `int
BEGIN_MESSAGE_MAP(DECLARE_MESSAGE_MAP()::CAuthTestDlg)' uses local type
`DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp: In function `int
BEGIN_MESSAGE_MAP(DECLARE_MESSAGE_MAP()::CAuthTestDlg)':
../authtestdlg.cpp:86: error: `<anonymous>' has incomplete type
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp:86: error: parse error before `(' token
../authtestdlg.cpp:87: error: ISO C++ forbids declaration of `ON_WM_SYSCOMMAND'
with no type
../authtestdlg.cpp: In function `int ON_WM_SYSCOMMAND()':
../authtestdlg.cpp:88: error: ISO C++ forbids declaration of `ON_WM_PAINT' with
no type
../authtestdlg.cpp: In function `int ON_WM_PAINT()':
../authtestdlg.cpp:90: error: ISO C++ forbids declaration of
`ON_WM_QUERYDRAGICON' with no type
../authtestdlg.cpp: In function `int ON_WM_QUERYDRAGICON()':
../authtestdlg.cpp:90: error: `OnBnClickedTest' undeclared (first use this function)
../authtestdlg.cpp:91: error: ISO C++ forbids declaration of `ON_BN_CLICKED'
with no type
../authtestdlg.cpp:91: error: initializer list being treated as compound expression
../authtestdlg.cpp:91: error: syntax error before `(' token
../authtestdlg.cpp:103: error: ISO C++ forbids declaration of `ASSERT' with no type
../authtestdlg.cpp:104: error: ISO C++ forbids declaration of `ASSERT' with no type
../authtestdlg.cpp:104: error: redefinition of `int ASSERT'
../authtestdlg.cpp:103: error: `int ASSERT' previously defined here
../authtestdlg.cpp:106: error: syntax error before `*' token
../authtestdlg.cpp:110: error: syntax error before `.' token
../authtestdlg.cpp:114: error: syntax error before `->' token
../authtestdlg.cpp:120: error: `m_hIcon' undeclared (first use this function)
../authtestdlg.cpp:120: error: `TRUE' undeclared (first use this function)
../authtestdlg.cpp:120: error: ISO C++ forbids declaration of `SetIcon' with no type
../authtestdlg.cpp:120: error: initializer list being treated as compound expression
../authtestdlg.cpp:121: error: `FALSE' undeclared (first use this function)
../authtestdlg.cpp:121: error: ISO C++ forbids declaration of `SetIcon' with no type
../authtestdlg.cpp:121: error: redefinition of `int SetIcon'
../authtestdlg.cpp:120: error: `int SetIcon' previously defined here
../authtestdlg.cpp:121: error: initializer list being treated as compound expression
../authtestdlg.cpp:125: error: parse error before `return'
../authtestdlg.cpp:128: error: `UINT' undeclared (first use this function)
../authtestdlg.cpp:128: error: parse error before `,' token
../authtestdlg.cpp:129: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp: In member function `void
DECLARE_MESSAGE_MAP()::CAuthTestDlg::OnSysCommand(...)':
../authtestdlg.cpp:130: error: `nID' undeclared (first use this function)
../authtestdlg.cpp:132: error: aggregate `DECLARE_MESSAGE_MAP()::CAboutDlg
dlgAbout' has incomplete type and cannot be defined
../authtestdlg.cpp:137: error: `CDialog' undeclared (first use this function)
../authtestdlg.cpp:137: error: parse error before `::' token
../authtestdlg.cpp:146: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp: In member function `void
DECLARE_MESSAGE_MAP()::CAuthTestDlg::OnPaint()':
../authtestdlg.cpp:147: error: `IsIconic' undeclared (first use this function)
../authtestdlg.cpp:149: error: `CPaintDC' undeclared (first use this function)
../authtestdlg.cpp:149: error: parse error before `(' token
../authtestdlg.cpp:151: error: `WM_ICONERASEBKGND' undeclared (first use this
function)
../authtestdlg.cpp:151: error: parse error before `>' token
../authtestdlg.cpp:154: error: `SM_CXICON' undeclared (first use this function)
../authtestdlg.cpp:154: error: `GetSystemMetrics' undeclared (first use this
function)
../authtestdlg.cpp:155: error: `SM_CYICON' undeclared (first use this function)
../authtestdlg.cpp:156: error: `CRect' undeclared (first use this function)
../authtestdlg.cpp:156: error: parse error before `;' token
../authtestdlg.cpp:157: error: `rect' undeclared (first use this function)
../authtestdlg.cpp:157: error: `GetClientRect' undeclared (first use this function)
../authtestdlg.cpp:162: error: `dc' undeclared (first use this function)
../authtestdlg.cpp:166: error: parse error before `::' token
../authtestdlg.cpp:172: error: syntax error before `::' token
../authtestdlg.cpp:178: error: invalid use of undefined type `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../AuthTestDlg.h:8: error: forward declaration of `class
DECLARE_MESSAGE_MAP()::CAuthTestDlg'
../authtestdlg.cpp: In member function `void
DECLARE_MESSAGE_MAP()::CAuthTestDlg::OnBnClickedTest()':
../authtestdlg.cpp:179: error: `UpdateData' undeclared (first use this function)
../authtestdlg.cpp:199: error: `LPSTR' undeclared (first use this function)
../authtestdlg.cpp:199: error: `LPCSTR' undeclared (first use this function)
../authtestdlg.cpp:199: error: parse error before `,' token
../authtestdlg.cpp:197: warning: unused variable `int AuthMask'
../authtestdlg.cpp:198: warning: unused variable `int Vendors[27]'
../authtestdlg.cpp:203: error: parse error before `,' token
../authtestdlg.cpp:213: error: `CComboBox' undeclared (first use this function)
../authtestdlg.cpp:213: error: parse error before `)' token
make: *** [authtestdlg.o] Error 1
Building file: ../stdafx.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -ostdafx.o ../stdafx.cpp
Finished building: ../stdafx.cpp
 
make: Target `all' not remade because of errors.
Build complete for project Auth


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (8 preceding siblings ...)
  2005-01-11 19:25 ` jeff at connectrf dot com
@ 2005-01-11 19:31 ` pinskia at gcc dot gnu dot org
  2005-01-11 20:03 ` jeff at connectrf dot com
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 19:31 -------
This is your bug and not gcc bug, figure out why you are getting the following error:
../AuthTest.h:7:10: #error include 'stdafx.h' before including this file for PCH

The reason why it works just fine for -M, well it does not fully compile, it only emits the dependencies.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (9 preceding siblings ...)
  2005-01-11 19:31 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 20:03 ` jeff at connectrf dot com
  2005-01-11 20:07 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-11 20:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-11 20:03 -------
Andrew,

If I take the exact same code, and compile it with VC++ it does not complain! 
However, gcc the ONLY thing that has changed, will not compile code that works!

Why? Old wise one, must one rewrite entrie working applications just so gcc
understands??

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (10 preceding siblings ...)
  2005-01-11 20:03 ` jeff at connectrf dot com
@ 2005-01-11 20:07 ` pinskia at gcc dot gnu dot org
  2005-01-11 20:23 ` jeff at connectrf dot com
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 20:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 20:07 -------
../AuthTest.h:7:10: #error include 'stdafx.h' before including this file for PCH

See that error, in VC++ (which is not usually a compand line driven) you have a PCH which use, do "-
include stdafx.h" on the command for gcc since that is actually done for you with VC++, this is still not 
a gcc problem, please stop reopening this bug as it is not a gcc bug and cannot be.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (11 preceding siblings ...)
  2005-01-11 20:07 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 20:23 ` jeff at connectrf dot com
  2005-01-11 20:26 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-11 20:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-11 20:23 -------
Andrew,

You are sure hard to convince...

Where did the error go?


**** Full rebuild of configuration Release for project Auth ****

make -k clean all 
rm -rf     authtest.o authtestdlg.o stdafx.o       authtest.d authtestdlg.d
stdafx.d   Auth.exe
Building file: ../authtest.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -fpreprocessed -M -oauthtest.o ../authtest.cpp
Finished building: ../authtest.cpp
 
Building file: ../authtestdlg.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -fpreprocessed -M -oauthtestdlg.o ../authtestdlg.cpp
Finished building: ../authtestdlg.cpp
 
Building file: ../stdafx.cpp
g++ -IC:\Documents and Settings\jeff\Desktop\AuthTest\include -O3 -Wall -c
-fmessage-length=0 -fpreprocessed -M -ostdafx.o ../stdafx.cpp
Finished building: ../stdafx.cpp
 
Building target: Auth.exe
g++  -o Auth.exe     authtest.o authtestdlg.o stdafx.o    
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:authtest.o:
file format not recognized; treating as linker script
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:authtest.o:1:
syntax error
collect2: ld returned 1 exit status
make: *** [Auth.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project Auth


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (12 preceding siblings ...)
  2005-01-11 20:23 ` jeff at connectrf dot com
@ 2005-01-11 20:26 ` pinskia at gcc dot gnu dot org
  2005-01-11 20:29 ` dje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 20:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 20:26 -------
Considering -M does not actually compile your code, no I am not hard to convince.
Read the manual for gcc and you will see -M does not compile the code at all, only gets the dependices 
for include files.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (13 preceding siblings ...)
  2005-01-11 20:26 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 20:29 ` dje at gcc dot gnu dot org
  2005-01-11 21:03 ` jeff at connectrf dot com
  2005-01-11 21:14 ` pinskia at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-01-11 20:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-01-11 20:29 -------
Jeff,

The problem does not have to be the source code or the compiler, it can be the
way that you are invoking the compiler.  I do not understand why you are
invoking the compiler with -M -fpreprocessed -- you say that with those options
it works, but it obviously does not work.  I infer that you mean it works
because you no longer receive error messages, but that change in behavior is a
byproduct of the option not because those options are necessary or correct.  You
are skipping the compiler processing that produces the error messages *and*
skipping the compiler processing that produces an object file.

David

Those additional options are wrong.  You need to figure out how to address the
error messages.  If the application source code is standard C++, it should
compile with both VC++ and with G++, modulo problems with conformance to standards.

As best I can figure out from the discussion thread, VC++ is being "friendly"
and implicitly inserting some header files that should be referenced explicitly.
 This is a difference in behavior between the two compilers, not a bug in either
one.  However, you need to adapt your source code and your build machinery to
the behavior of each compiler.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (14 preceding siblings ...)
  2005-01-11 20:29 ` dje at gcc dot gnu dot org
@ 2005-01-11 21:03 ` jeff at connectrf dot com
  2005-01-11 21:14 ` pinskia at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: jeff at connectrf dot com @ 2005-01-11 21:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeff at connectrf dot com  2005-01-11 21:03 -------
Well that makes sense..

Does anyone have an example of the compiler options to port from VC++ to GCC?  A
nice Crossreference table would be just dandy.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug driver/19281] file format not recognized; treating as linker script
  2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
                   ` (15 preceding siblings ...)
  2005-01-11 21:03 ` jeff at connectrf dot com
@ 2005-01-11 21:14 ` pinskia at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 21:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 21:14 -------
Well open a new bug for that and/or figure out what the options do, all of the gcc options are 
documented and if they are not, then that is a bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19281


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-01-11 21:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-05 21:53 [Bug c++/19281] New: file format not recognized; treating as linker script jeff at connectrf dot com
2005-01-05 21:56 ` [Bug c++/19281] " pinskia at gcc dot gnu dot org
2005-01-06 15:33 ` jeff at connectrf dot com
2005-01-06 15:42 ` pinskia at gcc dot gnu dot org
2005-01-10 18:46 ` jeff at connectrf dot com
2005-01-10 19:06 ` [Bug driver/19281] " pinskia at gcc dot gnu dot org
2005-01-10 19:09 ` pinskia at gcc dot gnu dot org
2005-01-11 17:44 ` jeff at connectrf dot com
2005-01-11 18:55 ` pinskia at gcc dot gnu dot org
2005-01-11 19:25 ` jeff at connectrf dot com
2005-01-11 19:31 ` pinskia at gcc dot gnu dot org
2005-01-11 20:03 ` jeff at connectrf dot com
2005-01-11 20:07 ` pinskia at gcc dot gnu dot org
2005-01-11 20:23 ` jeff at connectrf dot com
2005-01-11 20:26 ` pinskia at gcc dot gnu dot org
2005-01-11 20:29 ` dje at gcc dot gnu dot org
2005-01-11 21:03 ` jeff at connectrf dot com
2005-01-11 21:14 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).