LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2016, 06:04 AM   #1
Mi82
Member
 
Registered: Nov 2015
Posts: 53

Rep: Reputation: Disabled
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

Last edited by Mi82; 05-13-2016 at 06:06 AM.
 
Old 05-13-2016, 06:11 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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

Last edited by keefaz; 05-13-2016 at 06:20 AM.
 
Old 05-13-2016, 08:56 AM   #3
Mi82
Member
 
Registered: Nov 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
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 :-/
 
Old 05-13-2016, 09:06 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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?
 
Old 05-13-2016, 09:29 AM   #5
Mi82
Member
 
Registered: Nov 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What is involved in making an application? boysha Linux - General 2 12-30-2011 02:19 PM
Making application default siawash Linux - Software 2 04-20-2010 01:25 AM
Qt noob needs help in making simple Qt application beli0135 Programming 13 11-28-2009 02:06 PM
how to start making GUI for an application? Kakarot_Rathish Linux - Newbie 7 01-13-2009 06:02 PM
Making an application against different system libraries davidkline Linux - Newbie 1 11-01-2005 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration