General :: Compiling Another Program With Mpicc Using A Non Default Compiler?
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
ADVERTISEMENT
Nov 20, 2010
I am using makefile to complile all C Programming files. But certain files are not getting compiled and hence its object file is not getting generated. This is happening due to files haven't been modified for a long time. It seems that compiler knows that its object file is there hence no need to complie it actually it is not.
View 14 Replies
View Related
Dec 6, 2010
How to run a program containing lapack subroutines using ifort compiler?
View 1 Replies
View Related
Oct 7, 2009
I have Fedoara 11 install on my PC. I want to compile program as 32 by g++ option -m32. I have 32 bit library install on my machine which present in path
When i compile my sample program with -c & -m32 option it compile correctly
Then it gives linking error as:
View 2 Replies
View Related
Mar 21, 2010
how we can we write java programs in java and how we execute it.. to produce output?
View 2 Replies
View Related
Jun 28, 2011
I'm compiling a project that uses boost libraries (1.45.0) for a MIPS target, and when trying to compile with bjam I get the following error:
Code:
libboost_system-mt.a(error_code.o): In function `(anonymous namespace)::generic_error_category::message(int) const':
error_code.cpp:(.text+0x55c): undefined reference to `__glibc_strerror_r'
collect2: ld returned 1 exit status
View 3 Replies
View Related
Oct 30, 2010
A C program which compiled well in Dev CPP compiler is not compiling in Linux-Fedora.It shows the following error message/tmp/ccy02C6e.o.eh_frame+0x12):undefined reference to '__gxx_personality_v0'collect2:ld returned 1 exit status
View 2 Replies
View Related
Apr 15, 2010
Is there a standard compiler provided with the install of openSUSE?
Like gcc...
View 9 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
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
View Related
Oct 2, 2009
I have multiple gcc compilers in my laptop, how can I change the default gcc compiler?
View 2 Replies
View Related
Feb 25, 2010
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details.
View 4 Replies
View Related
Feb 20, 2010
I downloaded Go-OpenOffice from SlackBuilds.org, but I can't build it. make terminates with configure error: checking for C compiler default output file name. configure: error: in `/tmp/SBo/ooo-build-3.1.1.5': configure: error: C compiler cannot create executables See `config.log' for more details.
(I can't find config.log anywhere) I use a quite 'light' installation (no xap, ap), and I suspect that I have some unmet dependencies, but the error message provides no information about what software is needed (I've installed all dependencies listed on SlackBuilds.org). I'm using Slackware64-13 with Xfce
View 3 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
Feb 6, 2011
I recently upgraded from opensuse 11.0 to 11.3. I had LAM installed with 11.0, and all was well. I'm trying to install it again under 11.3.
I have installed lam-devel (and openmpi-devel), as well as gcc. When I try to compile and link using mpicc, everything compiles, but I then get the errors
Code:
gcc: libtool:: No such file or directory
gcc: link:: No such file or directory
mpicc: No such file or directory
Typing whereis for each of these gives
[Code].....
View 4 Replies
View Related
Jan 6, 2011
I am trying to compile some software written by a colleague in the lab that uses mpicc. When it is compiled on his account, it works fine, but fails on mine (on the same machine). When I type simply
>mpicc
I get the error
/usr/lib64/mpi/mpi-openmpi-intel/usr/bin/mpicc: error while loading shared libraries: libintlc.so.5: cannot open shared object file: No such file or directory
I am hesitant to mess around in .bashrc or .aliases before I have a little more information.
View 4 Replies
View Related
Dec 6, 2010
I was reading the following forum guide:openSUSE software installation hints So I decide to install from the souce code the following webcam application:
GTK+ UVC Viewer In order to avoid problems ( it is my first installation from souce code) I downloaded and unpacked everything in an USB key and I worked from, as the guide said, from the Linux terminal. Once I was in the right directory and I compute the command:
[code]..
View 9 Replies
View Related
May 28, 2010
Code:
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
hworld.cpp:5:20: error: wx/wx.h: No such file or directory
(snip)
I looked at other topics with similar problems and I have both wxGTK and wxGTK-devel installed. I'm pretty sure the method of compiling is correct.
View 4 Replies
View Related
Mar 22, 2010
I am trying to compile a simple remote procedure call program. I am getting an error:
/tmp/ccy0M5rT.o: In function 'main':
rpchighlayer.c.text+0x5c): undefined reference to 'rnusers'
collect2: ld returned 1 exit status
Code:
#include <stdio.h>
#include<stdlib.h>
main(argc, argv)
int argc;
char **argv; {
int num;if (argc != 2) {
fprintf(stderr, "usage: rnusers hostname ");
exit(1);
} if ((num = rnusers(argv[1])) < 0)
{fprintf(stderr, "error: rnusers ");
exit(-1);
} printf("%d users on %s
", num, argv[1]);
exit(0); }
View 2 Replies
View Related
Feb 5, 2011
Recently i have installed fedora 13 my laptop but when i try to compile a c program it says that gcc command not found.
i think repo file must be created first but i dont know how to create a repo file in fedora 13
or is there any other solution.
View 2 Replies
View Related
Aug 17, 2010
I have been using gcc to compile C programs.
I want to know what exactly is the meaning of Compiling a C program.
I checked
cc -S prog.c
will give an .S file and if you analyze the hexdump I saw some assembly instructions.
So what does the compiler do which is not required in case of interpreted languages?
View 13 Replies
View Related
Mar 10, 2010
I got an error that header file sys/ddi.h , did the system is missing something
View 2 Replies
View Related
May 25, 2010
I wrote a program in c++ on fedora 11. When i compiled it using g++. it displays the following error:
g++ fibnocci.cpp
fibnocci.cpp:2:22: error: iostream.h: No such file or directory
fibnocci.cpp: In function int main():
fibnocci.cpp:8: error: cout was not declared in this scope
fibnocci.cpp:8: error: endl was not declared in this scope
View 2 Replies
View Related
Jun 28, 2010
I'm sometimes compiling a piece of software on my Fedora 13 machine and then transferring it to an Ubuntu box. Recently I noticed this would yield issues with Fedora's .so files:
Given I had a program's binary and an .so file the program would attempt to load, both compiled on Fedora, the program would run fine on Ubuntu 8.04 LTS but would be unable to load to open the Fedora .so with an "ELF file OS ABI invalid" error.
Now any program I natively compile on Ubuntu which I run on Fedora instead, will throw the *same* error with Fedora .so's - so basically neither a Fedora bin on Ubuntu, nor an Ubuntu bin on Fedora can load the Fedora .so files, only a Fedora bin natively on Fedora can.
That means Fedora .so files are always a problem on Ubuntu, and Ubuntu bins are always a problem on Fedora (unable to load system libs there).
This is a bit odd for e.g. binary redistributions of programs (which are rare I know) and I also found out that e.g. Tibia's linux client suffers from this issue (throws "ELF file OS ABI invalid" on my Fedora 13 when attempting to load my system's libGl).
And I started to wonder whether the only way to work-around to get something that works on all platforms is a Fedora binary shipped with .so files compiled on Ubuntu - which seems a bit stupid and ridiculously complicated just to get something that works flawlessly everywhere. Isn't there e.g. a gcc switch that will allow me to compile the .so files on Fedora in such a way that they can also be used on an Ubuntu system so just compiling everything on Fedora, yet getting it to work on Ubuntu aswell would be possible?
View 13 Replies
View Related
Jan 25, 2010
How can I compile a C++ application using g++ with x86 platform settings on a x86_64 machine ? What are the possible negative side-effects of compiling a C++ application with x86 settings on a x86_64 platform ?
View 6 Replies
View Related
Aug 6, 2010
I've built a piece of hardware that communicates using usb. I was wondering could I make a libusb based program run on it's own without gcc/ libusb
View 10 Replies
View Related
May 17, 2011
I had developed a C program on linux (x86). Now I need to port it to HP-UX OS on IA/PA 64 bit arch. What are the options to be used with cc compiler, on linux (x86), so that this could be done, if at all.
View 1 Replies
View Related
May 8, 2010
I've created 3 files: swap.h and swap.c then make static library from it
Code:
Then I write 2 program to test this library: test_swap.c and test_swap.cpp
I compile
Code:
What's wrong with this in C++? And how can I make a library that can work both for any C and C++ program?
Here the source code
Code:
Code:
Code:
View 2 Replies
View Related
Jul 16, 2009
I am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...
View 4 Replies
View Related
Apr 20, 2009
I'm trying to compile a program on CentOS 5.2. It's giving the following error. Does anyone have a clue what it means?
/net/hulk/home4/tedhyu/openmpi/openmpi-1.1.1/install/bin/mpif77 -o quest_ompi.x lcaomain_tp.o utl_mpi.o lcaosubs_tp.o lcaosubs.o /project/source/seqquest/libs_32/scalapack-1.8.0/libscalapack.a /project/source/seqquest/libs_32/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /project/source/seqquest/libs_32/BLACS
[code]....
View 5 Replies
View Related