User forums > Help

compilation problem under linux

<< < (2/3) > >>

OkTekk:

--- Code: ---[b]lowlow@NuxStation:~/.../Projet 2/FL_Projet2_v2$[/b] ls -l
total 80
drwxr-xr-x 4 lowlow lowlow 4096 déc.  22 21:28 bin
drwxrwxr-x 2 lowlow lowlow 4096 déc.  29 12:29 bkp
-rw-rw-r-- 1 lowlow lowlow 6008 déc.  29 11:27 csv.c
drwxrwxr-x 2 lowlow lowlow 4096 déc.  22 21:14 database
drwxrwxr-x 2 lowlow lowlow 4096 déc.   2 13:03 export
-rw-rw-r-- 1 lowlow lowlow 1580 déc.  29 12:34 FL_Projet2_v2.cbp
-rw-rw-r-- 1 lowlow lowlow 1578 déc.  29 12:56 FL_Projet2_v2.layout
-rw-rw-r-- 1 lowlow lowlow 5792 déc.  29 11:27 global.h
drwxrwxr-x 2 lowlow lowlow 4096 déc.  22 21:14 import
-rw-rw-r-- 1 lowlow lowlow  636 déc.  29 11:27 index.c
drwxrwxr-x 2 lowlow lowlow 4096 déc.  22 21:14 log
-rw-rw-r-- 1 lowlow lowlow 6157 déc.  29 12:23 main.c
-rw-rw-r-- 1 lowlow lowlow  517 déc.  29 11:27 management.c
drwxr-xr-x 4 lowlow lowlow 4096 déc.  22 21:28 obj
-rw-rw-r-- 1 lowlow lowlow  552 déc.  29 11:27 search.c
-rw-rw-r-- 1 lowlow lowlow 4008 déc.  29 11:27 system.c
-rw-rw-r-- 1 lowlow lowlow 4002 déc.  29 11:27 toolbox.c
[b]lowlow@NuxStation:~/.../Projet 2/FL_Projet2_v2$[/b] ls -l obj/
total 8
drwxr-xr-x 2 lowlow lowlow 4096 déc.  22 21:26 Debug
drwxr-xr-x 2 lowlow lowlow 4096 déc.  22 21:28 Release
[b]lowlow@NuxStation:~/.../Projet 2/FL_Projet2_v2$[/b] ls -l obj/Debug/
total 0

--- End code ---

oBFusCATed:
What happens if you execute the gcc commands in a terminal at the root of the project?

Jenna:

--- Quote from: oBFusCATed on December 29, 2015, 03:59:06 pm ---What happens if you execute the gcc commands in a terminal at the root of the project?

--- End quote ---
Or if you manually remove the "obj"-folder ?

OkTekk:
jens: tried, it didn't worked.

oBFusCATed: juste done that (simples c/p from my log). as seen here, all .o files were created successfully

--- Code: ---lowlow@NuxStation:~/Ecole/01_Programmation Procédurale/Projet 2/FL_Projet2_v2$ ls obj/Debug/
csv.o  index.o  main.o  management.o  search.o  system.o  toolbox.o

--- End code ---

the only thing i don't understand is why C::B execute afterward (the gcc -Wall -g -c commands) some g++ -o.
They are the ones who stops compilation but...aren't they c++ commands ? i have made a C program, not C++

--- Code: ---from C::B log:

g++  -o bin/Debug/FL_Projet2_v2 obj/Debug/csv.o obj/Debug/index.o obj/Debug/main.o obj/Debug/management.o obj/Debug/search.o obj/Debug/system.o obj/Debug/toolbox.o 
--- End code ---

besides, i tried create a new project (to be sure it was created as a C project) then imported my files in it...same problem as explained since the creation of this topic

oBFusCATed:
C::B is mainly c++ ide, so it always uses g++ to link projects, no matter if they are c or c++. If you don't intend to make c++ project you can switch it to gcc. But I doubt it will make a difference.

Does the last command work if you execute it in the terminal?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version