LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble Making an Application (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-making-an-application-4175579702/)

Mi82 05-13-2016 06:04 AM

Trouble Making an Application
 
Hello! I am making an application under debian for the first time and am getting this error and I don't know how to find out more and correct the cause. Searching online didn't reveal anything I can understand.
Can someone give me a hand?



# make
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c sha256/sha256.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c base64.cpp
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c conntrack.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c testmain.cpp
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/argtable2.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_end.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_file.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_int.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_lit.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_rem.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors -c argtable/arg_str.c
g++ -g -fpermissive -std=c++11 -Wfatal-errors sha256.o base64.o conntrack.o testmain.o \
argtable2.o arg_end.o arg_file.o arg_int.o arg_lit.o arg_rem.o arg_str.o \
lpfw.cpp -lnetfilter_queue -lnetfilter_conntrack -lpthread -lcap -o lpfw
g++ -g -std=c++11 testprocess.cpp -lpthread -o testprocess

keefaz 05-13-2016 06:11 AM

I see no errors, just standard make output (it prints the executed commands)
Edit
Maybe it is not usual to use g++ to compile .c (C language) files, in the end that shouldn't make difference anyway (treats .c files as c++ source files)
https://gcc.gnu.org/onlinedocs/gcc/I...002b_002b.html

Mi82 05-13-2016 08:56 AM

But it says "fatal errors". Is that normal? Also, the application is not available/cannot be invoked after making so it seems something didn't work out :-/

keefaz 05-13-2016 09:06 AM

No, it is an option passed to g++/gcc
man gcc
Code:

      -Wfatal-errors
          This option causes the compiler to abort compilation on the first
          error occurred rather than trying to keep going and printing
          further error messages.

Application not available? Isn't a produced lpfw executable in your working directory?

Mi82 05-13-2016 09:29 AM

THanks! I couldn't run the executable from the shell so I assumed something was wrong. Turns out I had to drop it from Nautilus onto the Shell to make it run. Perfect! Thanks!


All times are GMT -5. The time now is 05:55 PM.