User forums > Help
Problem configuring Digital Mars as default compiler
Israel:
Hi guys,
New user, 1RC2, Build Oct 24, 2005 23:49:28 - wx2.6.1(Windows, ANSI)
I just installed Codeblocks and I want to use Digital Mars compiler as my default. I set the default and I tried (as best I could) to set up the paths, etc. (When Codeblocks started it found GCC and Watcom but nothing else.)
I created a console application and when I clicked on Build it invoked MINGW! (I can't remember for sure, but I think the as-shipped defaults for Digital Mars are wrong, it wants to use MINGW's MAKE instead of DMC.) I got past this by fixing the programs to point to DMC stuff.
My problem now is that even though the DMC compiler is invoked, it is trying to pull all the includes (<IOSTREAM>, for example) from the WATCOM directories! I can't see how this is happening, I have the correct INCLUDE library specified under the Digital Mars compiler set.
Any ideas?
Thanks!
Israel
MortenMacFly:
--- Quote from: Israel on October 31, 2005, 08:04:48 pm ---Any ideas?
--- End quote ---
Are there directories setup under: Settings -> Compiler -> Directories?
Could you post the full compiler log for a single file, please? (Settings -> Compiler -> Other ->Compiler logging = "Full command line")
Morten.
(Ps.: Did you check you system environment variables?)
rickg22:
There is a bug in the new project creation. You need to change the project's compiler after having created the project.
Anyway, having solved that, remember that the "default" directories are copied from the compiler's settings to the project's build settings. You need to check that these are good.
Israel:
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
takeshimiya:
You'll have to remove all the environment variables of openwatcom.
I had MinGW includes in PATH, and then the includes of MinGW chocked with the ones from DMars.
If you are using C::B you don't need the environment variables as you could set up variables inside C::B.
It is a bad idea to use the PATH when using more than one compiler.
Also, a note about DMars, you have to include the stlport first:
dm\stlport\stlport
dm\include
Of course, that is if you are using the STL.
Navigation
[0] Message Index
[#] Next page
Go to full version