User forums > Using Code::Blocks

Using code::blocks w/o a project

<< < (7/12) > >>

dukester:
/usr/bin/bash is set in Menu/Settings/General/Environment Settings/General settings

In there I also set the terminal I want to use.

Pecan:
For our tests, set:
shell to run to: /bin/sh -c
Terminal to launch: xterm -T $TITLE -e
Open containing folder: xdg -open

dukester:
Done!! Re-built w/ following results:


-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

gcc -Wall -std=c99 -m64 -Og  -I/home/dnormandin/programming/c/code/temp -I -c /home/dnormandin/programming/c/code/temp/HelloWorld.c -o /home/dnormandin/programming/c/code/temp/HelloWorld.o
gcc  -o /home/dnormandin/programming/c/code/temp/HelloWorld /home/dnormandin/programming/c/code/temp/HelloWorld.o  -O2 -m64 
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

||=== Build file: "no target" in "no project" (compiler: unknown) ===|
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o||in function `_start':|
(.text+0x20)||undefined reference to `main'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Pecan:
Where did the "/usr/bin/ld: /usr/lib/gcc/x86..." line come from?

dukester:
From the "Build Messages"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version