Author Topic: Test CB into command line ... failed. Don't find target ... Why ?  (Read 2247 times)

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 86
Test CB into command line ... failed. Don't find target ... Why ?
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7802
    • My Best Post
Re: Test CB into command line ... failed. Don't find target ... Why ?
« Reply #1 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!
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: Test CB into command line ... failed. Don't find target ... Why ?
« Reply #2 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.