LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2003, 02:08 AM   #1
changlezhang
LQ Newbie
 
Registered: Aug 2003
Location: wuhan china
Posts: 8

Rep: Reputation: 0
Question program c++


I am write a program with the files of arg.h and arg.cpp ,but I don't know how to compile them .This program must use a additive include and libary --Arialib.so (because my program is base on another software).for example:
//arg.h
#include AfSocket.h(the software's file)
........
//arg.cpp
#include arg.h
..........

how to compile the files???????
 
Old 08-30-2003, 05:09 AM   #2
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
if arg.h is in your include path, e.g. /usr/include/arg.h ; then arg.cpp should begin like this:

#include <arg.h>

if it is not, then:

#include "path-to-arg.h" <<< with the double-quotes

what compiler error do you get ?
 
Old 08-30-2003, 06:37 AM   #3
changlezhang
LQ Newbie
 
Registered: Aug 2003
Location: wuhan china
Posts: 8

Original Poster
Rep: Reputation: 0
thank you very much ,you are very right !but how to deal with AfSocket.h,it is not my program,it is a software's file
 
Old 08-30-2003, 11:22 AM   #4
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
It should be the same, it doesn't need to be your program.

try it, and let us know if you still have a problem.
 
  


Reply



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
sms program and database in linux web program in windows.. does not see each other.. keikun_naruchan Programming 0 07-06-2005 01:40 AM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 01:44 PM
Stop java program(threaded program..should end cleanly) rmanocha Programming 4 11-09-2004 09:36 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration