www.digitalmars.com         C & C++   DMDScript  

c++ - Fatal error

reply Zach Kreft <zach thepayne.net> writes:
I'm trying to compile a simple Win32 program and I've been getting
a strange error.  Here's the command line I'm using:

   dmc swp -mn -WA  c:\dm\lib\gdi32.lib

where swp.cpp is the name of the source file.  When I execute this
command, the compiler generates this:

   swp.cpp:



I have no idea why it's doing this.  Does anyone have any ideas?
Oct 09 2007
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Zach Kreft wrote:
 I'm trying to compile a simple Win32 program and I've been getting
 a strange error.  Here's the command line I'm using:
 
    dmc swp -mn -WA  c:\dm\lib\gdi32.lib
 
 where swp.cpp is the name of the source file.  When I execute this
 command, the compiler generates this:
 
    swp.cpp:


 
 I have no idea why it's doing this.  Does anyone have any ideas?
What's the doing in the command line?
Oct 09 2007
parent reply Zach Kreft <zach thepayne.net> writes:
The   is there to indicate the location of the library being
used.  For some reason, the compiler wouldn't find it using the
default settings.


being rendered online.  The actual symbol (which I copied and
pasted) is a character that looks like an equal sign with an exra
line.

Any ideas?
Oct 10 2007
parent Walter Bright <newshound1 digitalmars.com> writes:
Zach Kreft wrote:
 The   is there to indicate the location of the library being
 used.  For some reason, the compiler wouldn't find it using the
 default settings.
That makes me suspect weird things are in your PATH, or LIB.
 

 being rendered online.  The actual symbol (which I copied and
 pasted) is a character that looks like an equal sign with an exra
 line.
 
 Any ideas?
 
I suggest looking at the PATH or LIB environment variable to see if it has funny characters in it. Also the sc.ini file.
Oct 11 2007