I haven't worked with DM much, but are you sure it's using sc.ini when invoked by C::B?
yes it does for sure! i use it this way and don't have any problems
If I were you, I would add the above directories in the global directories option for the DM compiler...
works just as well of course,
in addition it gives more flexibility, if using other stl libraries,
but in fact, when one uses DMC, stlport is the only one which works for now with
reasonably less troubles ...
edit your sc.ini so that it contains the pathes to your stlport includes and libs directories.
I think i allready did that...
i use the
absolute path to the stlport library and it works like a charm
here's my sc.ini:
[Version]
version=7.51 Build 020
[Environment]
PATH=%PATH%;"%@P%\..\bin"
BIN="%@P%\..\bin"
INCLUDE="D:\dm\stlport\stlport";"%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%
LIB="%@P%\..\lib";"%@P%\..\mfc\lib";%LIB%
HELP="%@P%\..\help"
result:
Project : Console application
Compiler : Digital Mars Compiler (called directly)
Directory : D:\cpp\_projects\dm\hello_stlport\
--------------------------------------------------------------------------------
Switching to target: default
dmc.exe -mn -c -I"D:\dm\include" -o.objs\hello.o hello.cpp
link.exe /NOLOGO .objs\hello.o , "D:\cpp\_projects\dm\hello_stlport\hello_stlport.exe", ,
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
codeblocks project file:
<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="Console application"/>
<Option makefile="Makefile"/>
<Option makefile_is_custom="0"/>
<Option compiler="3"/>
<Build>
<Target title="default">
<Option output="D:\cpp\_projects\dm\hello_stlport\hello_stlport.exe"/>
<Option working_dir="."/>
<Option object_output=".objs"/>
<Option deps_output=".deps"/>
<Option external_deps=""/>
<Option additional_depfiles=""/>
<Option type="1"/>
<Option compiler="3"/>
<Option projectResourceIncludeDirsRelation="1"/>
</Target>
</Build>
<Unit filename="hello.cpp">
<Option compilerVar="CPP"/>
<Option objectName="hello.o"/>
<Option target="default"/>
</Unit>
</Project>
</Code::Blocks_project_file>
you see, you dont need any include directories or anything else,
just add the module-file ( in this case "hello.cpp" ) to the project.
that's it !
HTH -tiwag