Programming :: C++ Compiler(G++) Comes Up With Error When Try To Compile A Program Using Qt
May 26, 2010
I am using the C++ compiler G++ to compile my programs on Linux Mint 8 - Gnome.
I recently installed QT and when I tried to compile a simple "Hello World!" program it gave me this error:
Quote:
This is the code in HelloWorldQt.cpp:
Code:
I have tried using GTK instead but I get a similar error.
View 7 Replies
ADVERTISEMENT
May 26, 2010
compile package C++ with GNU compiler under Linux, I can share my program's
View 3 Replies
View Related
Jun 10, 2010
I'm trying to do a ./configure on ntfs-3g, and I get this error that says "error: C compiler cannot create executables." I have gcc, g++ and everything installed, but I don't have build-essential. It's an offline server so I can't use apt-get to install it. I also can't find an RPM for CentOS. Is that what I need to resolve this? Or is this error caused by something else?
View 8 Replies
View Related
Dec 26, 2010
My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?
View 5 Replies
View Related
Apr 21, 2010
i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
[Code]...
View 1 Replies
View Related
Feb 10, 2010
I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.
please let me know how to compile the program for windows
View 8 Replies
View Related
Feb 26, 2010
I want to capture the ip packets, so i installed
I am getting the following errors.
View 7 Replies
View Related
Aug 11, 2010
I am using a arm compiler to build my program but getting following compiler error at the end -
init.c.text+0x2c): undefined reference to '__libc_csu_fini'
init.c.text+0x34): undefined reference to '__libc_csu_init'
View 1 Replies
View Related
May 21, 2011
I write a small program to learn overflow. But when I input more than 5 characters (exceed the boundaries of the buffer),I can't get the character that I have initialized. I used gcc4.5.2 to compile this program. Then I used gdb to debug it. I found that when I input more than 5 characters, the variable 'test' was set to 0(ASCII code or '00').
[Code]...
View 8 Replies
View Related
Nov 15, 2010
I wanted to compile a program for my openwrt router from source i already have but to add an option. I ran ./autogen.sh in the terminal but it returned aclocal not found.
View 5 Replies
View Related
Jul 8, 2011
I am new to the whole concept of makefiles, and I'm trying to compile and build my program using a makefile template I have found. My project consists of three directories: "source", where my .cpp files are (source1.cpp, source2.cpp, source3.cpp), "include", where my .h files are (header1.h, header2.h, header3.h), and "obj", where the object files are to be stored (obj1.o, obj2.o, obj3.o). In the project root directory is my makefile, which is as follows:
Code:
EXEC = myexe
CC = g++
IDIR = include
SDIR = source
ODIR = obj
[Code]..
View 4 Replies
View Related
Jul 6, 2010
When I compile a C program in Fedora Core 12 using the following format: gcc -o program -static program.c
I get an error:
What do I need to do to make the program compile correctly with the -static flag ?
View 1 Replies
View Related
Feb 5, 2015
I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?
View 4 Replies
View Related
Dec 28, 2010
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies
View Related
Apr 3, 2011
I have C++ source code(*.cpp) files that expects it's header files in System's include folder which is/usr/include.The cpp files has include lines like this:
Code:
#include <some.h>
#include <another.h>
[code]...
View 3 Replies
View Related
May 1, 2011
I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy
View 8 Replies
View Related
Oct 7, 2010
I'm relatively new to Linux and had a question regarding the GCC compiler.I realize that I can write an application and compile it using the GCC complier.I can even sell it (or not) . My question is do I have to make my source code public available also ?
View 5 Replies
View Related
May 13, 2011
I am trying to compile x264 but ./configure returns just Quote: No working C compiler found. Yes, I have installed build-essentials and yes, I have installed gcc Already tried update and upgrade... so I dont know whats wrong my c++ compiler works normally.
View 1 Replies
View Related
Jan 7, 2010
i'm currently using the gnu compiler "gfortran" , but i don't think the executable files it creates are compatible with windows XP (though i may be mistaken). my boss needs a few simple programs that i have written, but i will not be able to compile the code on his pc. are there any compilers out there that i can use to create such executables?
View 3 Replies
View Related
Dec 18, 2009
I'm trying to cross compile embeddedQT on my Debian box for a ARM processor.
I've configured with
Everything went OK. I then made, after about 10 mins of compile I get the following error.
View 5 Replies
View Related
Sep 13, 2010
I am trying to compile the iputils package on FC12 statically but badly stuck up on a below error. My requirement is; I need to have ping utility built statically.
Any clue whats missing here? Per my understanding its trying to locate the glibc and when I search for glibc rpm I can see all those packages are properly installed.
[root@bastionNUX iputils-s20100418]# make LDFLAGS="-static -s"
gcc -static -s ping.o ping_common.o -o ping
/usr/bin/ld: cannot find -lc
[Code].....
View 6 Replies
View Related
Oct 7, 2010
i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?
View 3 Replies
View Related
Mar 5, 2010
As a result, I want to know what this error means, and how to correct it.Here is my code:
Code:
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
[code]....
It is once I use the 'try_crack' function inside of main that I get this error.
View 6 Replies
View Related
Feb 15, 2011
The following command would remove the leading astericks, spaces, slashes, tabs and is present in an awk script.
Code:
gsub(/^[/* ]*/,"")
The above code is working fine when i run in Cygwin on windows machine. But when i run in Ubuntum throws the following error.
Code:
awk: ./Format.awk: line 30: regular expression compile failed (bad class -- [], [^] or [)
^[
awk: 30: unexpected character ''
awk: ./Format.awk: line 30: runaway regular expression /,""); ...
View 2 Replies
View Related
Nov 19, 2008
I'm having a bit of trouble with a regular expression I'm trying to write and I'm not sure if it's something Tcl specific or my lack of regexp understanding.
[Code]...
I get a number of strings passed to a proc in the format 3|x where x is a number, either 0 or within the range 5-12. My understanding is that that regexp will match the literal '3' followed by a '|', the escapes the special meaning of |, and then 0 or, because of |, a number within the range 5-12. However I'm getting the error 'couldn't compile regular expression pattern: invalid character range'.
View 3 Replies
View Related
Apr 17, 2011
i have installed packets for running G++ command but when i compiled the .cpp file it was showing iostream.h file not found then i remove .h extentions from #include <iostream.h> and all other include headers as well in cpp source file then this iostream.h not found option gone but still some files are missing and my program is not running
View 1 Replies
View Related
Jul 1, 2011
I am trying to compile a program with mpicc. To compile I use:
CC=/usr/bin/mpicc ./configure
However mpicc's default C compiler is gcc 4.4.2 and I need to use 4.0.0 which I have installed in another directory. I do not (nor can get) root privileges so I cannot edit mpicc's default compiler. Is there an option I can set while configuring?
View 2 Replies
View Related
Dec 6, 2010
How to run a program containing lapack subroutines using ifort compiler?
View 1 Replies
View Related
Mar 15, 2011
The following is the error in my program :
Here is my program...
View 7 Replies
View Related
May 19, 2010
I want to compile MFiX which is a simulation software. Therefore, I installed the Intel Fortran Compiler Ver. 11.x When compiling, I can only choose between Ver.9.x and 10.x.
This is a part of the error message when choosing either:
Is there a possibility to link the program to the newer compiler version?
I'm using Centos 5.4.
View 5 Replies
View Related