www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



c++ - Fatal error

↑ ↓ ← 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:
   &#8801;:
   Fatal error: unable to open input file '&#8801;'

I have no idea why it's doing this.  Does anyone have any ideas?
Oct 09 2007
↑ ↓ 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:
    &#8801;:
    Fatal error: unable to open input file '&#8801;'
 
 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
↑ ↓ 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.

Actually, the symbol generated wasn't '&#8801;' which is how it is
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
↑ ↓ → 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.
 
 Actually, the symbol generated wasn't '&#8801;' which is how it is
 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