User forums > Using Code::Blocks

cbp2make - makefile generation tool

<< < (4/25) > >>

user601:
Have you ever tried to compile this under windows (mingw)?

mirai:

--- Quote from: user601 on January 11, 2011, 10:06:41 am ---Have you ever tried to compile this under windows (mingw)?

--- End quote ---

Yes, I did, but not the latest revison(s). Since I rewrote some platform-specific stuff after rev.38 and tested only Linux version, Windows part may become broken. Sorry for inconvenience, I will try fix Windows/MinGW issues as soon as I can.

mirai:
Update: (see rev.58) Fixed problem with compiling Windows-specific code rewritten and broken after rev.39.

MortenMacFly:

--- Quote from: mirai on January 20, 2011, 08:42:22 pm ---Update: (see rev.58) Fixed problem with compiling Windows-specific code rewritten and broken after rev.39.

--- End quote ---
Crashes immediately on Windows if the cbp file is not present (was a typo in my command line).

MortenMacFly:

--- Quote from: MortenMacFly on January 20, 2011, 09:26:23 pm ---
--- Quote from: mirai on January 20, 2011, 08:42:22 pm ---Update: (see rev.58) Fixed problem with compiling Windows-specific code rewritten and broken after rev.39.

--- End quote ---
Crashes immediately on Windows if the cbp file is not present (was a typo in my command line).

--- End quote ---
..further information:
It crashes here:

--- Code: --- result = getenv("HOME");
--- End code ---
-> the assignment fails as getenv returns NULL. You cannot rely on envvars being present. The envvar HOME may exist on Windows but in many cases (as in mine) it does not. You probably want to use USERPROFILE instead. However, still you'll need to evaluate the return value getenv provides in any case. ;-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version