Hi guys,
> From rickg22
> There is a bug in the new project creation. You need to change the project's compiler after having created the project.
Yes, I saw that also, it was very bizarre! Thanks. That part I think is ok now.
Now, in reverse order:
> From MortenMacFly
> (Ps.: Did you check you system environment variables?)
I think this could be the problem, but I don't know how to fix it, since, presumably, OpenWatcom will bomb if I change the path. Any suggestions?
> Could you post the full compiler log for a single file, please? (Settings -> Compiler -> Other ->Compiler logging = "Full command
> line")
Yes, of course. This is from the "hello world" skeleton generated when I selected console app:
Project : Console application
Compiler : Digital Mars Compiler (called directly)
Directory : C:\Utilities\WXP\Dev\C++\console1\
--------------------------------------------------------------------------------
Switching to target: default
dmc.exe -mn -c -I"C:\Program Files\dm845c\dm\include" -o.objs\main.obj main.cpp
#pragma read_only_file;
^
C:\watcom\H\iostream(35) : Warning 17: unrecognized pragma
#pragma read_only_file;
^
C:\watcom\H\_comdef.h(31) : Warning 17: unrecognized pragma
#pragma read_only_file;
^
C:\watcom\H\ios(35) : Warning 17: unrecognized pragma
#pragma pack( __push, 1 )
^
C:\watcom\H\ios(105) : Preprocessor error: ')' expected
#pragma pack( __push, 1 )
^
C:\watcom\H\ios(105) : Warning 17: unrecognized pragma
#pragma pack( __pop )
^
C:\watcom\H\ios(237) : Preprocessor error: ')' expected
#pragma pack( __pop )
^
C:\watcom\H\ios(237) : Warning 17: unrecognized pragma
#pragma read_only_file;
^
C:\watcom\H\streambu(34) : Warning 17: unrecognized pragma
#pragma pack( __push, 1 )
^
C:\watcom\H\streambu(77) : Preprocessor error: ')' expected
#pragma pack( __push, 1 )
^
C:\watcom\H\streambu(77) : Warning 17: unrecognized pragma
#pragma pack( __pop )
^
C:\watcom\H\streambu(153) : Preprocessor error: ')' expected
#pragma pack( __pop )
^
C:\watcom\H\streambu(153) : Warning 17: unrecognized pragma
#pragma read_only_file;
^
C:\watcom\H\istream(36) : Warning 17: unrecognized pragma
#pragma read_only_file;
^
C:\watcom\H\ostream(36) : Warning 17: unrecognized pragma
#pragma pack( __push, 1 )
^
C:\watcom\H\ostream(56) : Preprocessor error: ')' expected
Fatal error: too many errors
--- errorlevel 1
Process terminated with status 1 (0 minutes, 0 seconds)
16 errors, 0 warnings
> Are there directories setup under: Settings -> Compiler -> Directories?
Yes, for Compiler, I have C:\Program Files\dm845c\dm\include
and for Linker, I have C:\Program Files\dm845c\dm\lib
Thanks very much, guys!
Israel