LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2003, 06:13 PM   #1
josh89
LQ Newbie
 
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15
Compiling C++ with Forms


Hi, i just created a Form with Qt3 and a C++ main.cpp that i think is supposed to display the form because it stated:

#include <qapplication.h>
#include "form.h"

so, just to test to see if the form comes up i went to compile it:

1. went to directory
2. ran terminal from inside directory
3. typed command g++ main.cpp

after those steps i got a ton of errors stating about it cant find the headers and some errors with the script, i didnt even write the script, it was just pointing to the form.h to run it.

how can i compile it to run the form?
any help will be appreciated

thanks,
josh89
 
Old 11-09-2003, 11:50 PM   #2
josh89
LQ Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
how do i compile it without getting errors???? what command should i use to compile a c++ program?
 
Old 04-22-2004, 08:27 PM   #3
fuzzyworm
Member
 
Registered: Sep 2003
Location: Stroud, UK
Distribution: Kubuntu, Debian
Posts: 149

Rep: Reputation: 15
if you wrote it in qt3, there is a dedicated compiler.
Switch to the directory in which you have saved your files.
If you already have a project file, skip this step:
Code:
qmake -project
Then type
Code:
qmake
Then
Code:
make
and
Code:
./foo
where 'foo' is the name of your program
 
  


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
Forms in HTML J_K9 Programming 5 06-30-2005 02:21 PM
HTML Forms belorion Programming 1 02-01-2005 11:41 PM
Forms with Qt Raphael_T Programming 10 05-12-2004 02:42 PM
Oracle Forms 6i seeone Linux - Software 0 03-01-2004 04:55 PM
qt forms help alrawab Programming 1 10-15-2003 03:24 PM

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

All times are GMT -5. The time now is 06:02 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