User forums > General (but related to Code::Blocks)

exe extension on Ubuntu

<< < (2/3) > >>

oBFusCATed:
You have to disable "Auto generate filename extension" option in the Project -> Properties dialog.

ordak:

--- Quote from: oBFusCATed on August 10, 2017, 10:04:06 pm ---You have to disable "Auto generate filename extension" option in the Project -> Properties dialog.

--- End quote ---

I disabled it and changed "output filename" adding exe extension. But the compiled console application is still without extension.

Jenna:

--- Quote from: ordak on August 11, 2017, 05:56:31 am ---
--- Quote from: oBFusCATed on August 10, 2017, 10:04:06 pm ---You have to disable "Auto generate filename extension" option in the Project -> Properties dialog.

--- End quote ---

I disabled it and changed "output filename" adding exe extension. But the compiled console application is still without extension.

--- End quote ---
I tested it here on Fedora with latest nightly and it works as expected.

--- Code: ----------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -I/tmp/test -c /tmp/test/main.cpp -o obj/Debug/main.o
g++  -o bin/Debug/test.exe obj/Debug/main.o   
Output file is bin/Debug/test.exe with size 27,85 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

-------------- Run: Debug in test (compiler: GNU GCC Compiler)---------------

Checking for existence: /tmp/test/bin/Debug/test.exe
Executing: gnome-terminal --hide-menubar -t test -x /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /tmp/test/bin/Debug/test.exe  (in /tmp/test/.)
Process terminated with status 0 (0 minute(s), 0 second(s))

--- End code ---

Did you change it for all targets and if not, did you test it on the correct target ?

Can you copy the "Build log"when doing a full  rebuild and paset it here, at least the relevant part (linking of the executable) ?
You should see the full filename in the linker command in the logs.

And to avoid any misunderstandings: you use a "real" Code::Blocks project, not a Makefile-based project ?

ordak:

--- Quote from: jens on August 11, 2017, 07:31:14 am ---
--- Quote from: ordak on August 11, 2017, 05:56:31 am ---
--- Quote from: oBFusCATed on August 10, 2017, 10:04:06 pm ---You have to disable "Auto generate filename extension" option in the Project -> Properties dialog.

--- End quote ---

I disabled it and changed "output filename" adding exe extension. But the compiled console application is still without extension.

--- End quote ---
I tested it here on Fedora with latest nightly and it works as expected.

--- Code: ----------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -I/tmp/test -c /tmp/test/main.cpp -o obj/Debug/main.o
g++  -o bin/Debug/test.exe obj/Debug/main.o   
Output file is bin/Debug/test.exe with size 27,85 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

-------------- Run: Debug in test (compiler: GNU GCC Compiler)---------------

Checking for existence: /tmp/test/bin/Debug/test.exe
Executing: gnome-terminal --hide-menubar -t test -x /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /tmp/test/bin/Debug/test.exe  (in /tmp/test/.)
Process terminated with status 0 (0 minute(s), 0 second(s))

--- End code ---

Did you change it for all targets and if not, did you test it on the correct target ?

--- End quote ---

I used it on one target.


--- Quote ---Can you copy the "Build log"when doing a full  rebuild and paset it here, at least the relevant part (linking of the executable) ?
You should see the full filename in the linker command in the logs.

--- End quote ---


--- Code: ----------------- Build: Release in THW4 (compiler: My_Copy of LLVM Clang Compiler)---------------

clang   -pedantic -Weverything -Wall -std=c11 -m64    -c /home/mehdi/Documents/Code_Blocks_Projects/Template_HW4/Main.c -o obj/Release/Main.o
clang++  -o bin/Release/THW4 obj/Release/Main.o  -m64 -static -lfftw3l  -lcunit
Output file is bin/Release/THW4 with size 891.45 KB
Process terminated with status 0 (0 minute(s), 2 second(s))
0 error(s), 0 warning(s) (0 minute(s), 2 second(s))
 

-------------- Run: Release in THW4 (compiler: My_Copy of LLVM Clang Compiler)---------------

Checking for existence: /home/mehdi/Documents/Code_Blocks_Projects/Template_HW4/bin/Release/THW4
Executing: gnome-terminal -t THW4 -x  /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/mehdi/Documents/Code_Blocks_Projects/Template_HW4/bin/Release/THW4  (in /home/mehdi/Documents/Code_Blocks_Projects/Template_HW4/bin/Release)
Process terminated with status 0 (0 minute(s), 0 second(s))
 

--- End code ---


--- Quote ---And to avoid any misunderstandings: you use a "real" Code::Blocks project, not a Makefile-based project ?

--- End quote ---

I used a User template.

Commaster:

--- Quote ----o bin/Release/THW4
--- End quote ---
You haven't changed the right one, looks like...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version