User forums > Using Code::Blocks

Open Watcom problems\questions

<< < (2/3) > >>

Biplab:
Official wxWidgets wizard does not support OpenWatcom. So no settings are added for that. The error you are getting in the script is due to some uninitialised variables. Nothing to worry on that.

PCH file should be created first using some header or cpp file. Otherwise you can keep all the header includes in all the cpp file consistent. That means every time the compiler encounters a cpp file PCH mode, it would see that the include headers are similar, and it would not recreate the PCH file.

I'm not sure how OpenWatcom creates PCH file. But you can set some command to create PCH file through wx/wxprec.h and then try to use the generated PCH file.

OpenWatcom is in my to TODO list for wxWidgets project wizard. But I need to know it more before I can start working on it.  :)

stahta01:

--- Quote from: killerbot on January 06, 2007, 11:24:35 pm ---project (or you can even put on compiler level) : Directories tab (or Linker tab maybe for other settins)

--- End quote ---

I know what killerbot was talking about now;

He meant that instead of listing the linker directories under "Directories" -> "Linker" to use instead "Linker" -> "Linker other options". This seems to help get past the first errors I was getting, but I am getting other errors because I have no idea on how to use Watcom with wxWidgets.

I added this to "Linker other options" and it seemed to work.
-"libpath C:\wx\inno\wxWidgets\lib\wat_lib"

Tim S

killerbot:
yes, that's what I was suggesting.

@madnut.ua :
1) Can you have more the none LIBPath <path> ... ?
2) Could you give an example where you want to add 2 paths "PathA" and "PathB", preferably each as a separate setting, please give such an example of the full command line.
I will adjust this evening then.

You can already manually change it (look in default.conf in your user-dir\codeblocks : the compiler sets)


killerbot:

--- Quote ---If the name of a library file appearing in a "LIBRARY" directive or the the name of an object
file appearing in a "LIBFILE" directive contains a path specification, only the specified path
will be searched.
Note that
libpath path1
libpath path2
is equivalent to the following.
libpath path2;path1
--- End quote ---

killerbot:
@madnut.ua

I have the changes ready to commit, but you will have to manually adjust your defaul.conf anyway, unless you delete it [otherwise the changes in the CB soures won't have any effect].

Change this in your default.conf to try out, to see if it works (note nothing to do with wx wizard !!) :
- look for <ow>
- then the subtag <Make> and change from :

--- Code: --- <MAKE>
<str>
<![CDATA[mingw32-make.exe]]>
</str>
</MAKE>

--- End code ---

to

--- Code: --- <MAKE>
<str>
<![CDATA[wmake.exe]]>
</str>
</MAKE>

--- End code ---

then look for the subtag(s) : <switches> <LIBS>
and change from :

--- Code: --- <LIBS>
<str>
<![CDATA[-L]]>
</str>
</LIBS>

--- End code ---
to

--- Code: --- <LIBS>
<str>
<![CDATA[-LIBpath]]>
</str>
</LIBS>

--- End code ---

and finally look for <regex><re001> and change from

--- Code: --- <TYPE int="2" />

--- End code ---
to

--- Code: --- <TYPE int="0" />

--- End code ---
that last one will change it to cltNormal, we don't have cltInfo, so not sure if this will have the desired effect
Please provide a simple line of code that will trigger a *note*. According to the dropdown box the "Info" should map to cltNormal.

Please provide us with your feedback, so I can commit this evening the fixed code.

EDIT : Make sure all cb instances are closed when you make this changes !

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version