Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ThierryD on September 01, 2025, 03:01:14 pm

Title: Test CB into command line ... failed. Don't find target ... Why ?
Post by: ThierryD on September 01, 2025, 03:01:14 pm
Hi,

I (re)test to run CB in command line on Windows (11 64 bit), to rebuild only "one" target of my project (here CLANG on Cygwin64, new version 20.1.8)

Just command to excute in command console : "codeblocks.exe --target="Debug CLANG CYG N24" /nd /ns --rebuild Lesson25.workspace  --log-to-file"
Here result of log (codeblocks.log) :
Code
Manager initialized
Loaded config file 'C:\Users\thier\AppData\Roaming\CodeBlocks\default.conf' (personality: 'default')
Configured 0 tools
Scanning for plugins in C:\Users\thier\AppData\Roaming\CodeBlocks\share\codeblocks\plugins
Loaded 0 plugins
Scanning for plugins in C:\Codeblocks\share\codeblocks\plugins
Loaded 1 plugins
Loading:
Compiler
Initial scaling factor is 1.000 (actual: 1.000)
Opening C:\src\OpenGL\NeHe_Lesson25-master\Lesson25.cbp
Done.
ProjectManager::LoadProject took: 0.112 seconds.
ProjectManager::SetProject() took: 0.061 seconds.
Warning: No target named 'Debug CLANG CYG N24' in project 'Lesson25'. Project will not be built...
Warning: No target named 'Debug CLANG CYG N24' in project 'Lesson25'. Project will not be built...

Sure, this target exist in my project (joined in zip file).

What's wrong ?

Thank's.

Regards
Title: Re: Test CB into command line ... failed. Don't find target ... Why ?
Post by: stahta01 on September 01, 2025, 05:06:51 pm
"Debug CLANG CYG N64" does not equal 'Debug CLANG CYG N24'

Extra hint: 6 does not equal 2

Problem is user error!
Title: Re: Test CB into command line ... failed. Don't find target ... Why ?
Post by: ThierryD on September 01, 2025, 05:45:32 pm
YES ... you're rigth !!!
Shame on me, I'm very tired today ! problem is often beetween keyboard and screen ...).   :D

Test OK with "good" target. Sorry.

Regards.