Programming :: Static Linker With Make Configure

Oct 2, 2010

I need to compile a program and make it portable to other computers, but it needs some external libraries and I don't want them to be linked dynamically, I would like to compile them as one single executable or at least compile them in the same directory as the main output files. The program is sphinx>, it has its own configure and make scripts. I know I can run g++ with the -static flag, but I don't know how to do this with make or configure. This is the ./configure --help output

[Code]....

View 1 Replies


ADVERTISEMENT

Software :: Make - Building Project With Different Linker And Compiler?

Jun 7, 2011

I am trying to recompile a large open source project with the Nvidia Cuda Compiler: 'nvcc' [URL].. nvcc supports all the compile flags that gcc does but not all of the linking options. This shouldn't be a problem however as nvcc generates object files that are compatible with gcc and I should hence be able to compile with nvcc and then link with gcc (linking against the CUDA library).

To compile with nvcc I use:
./configure CC=nvcc

Which successfully creates make files that se nvcc to compile. But the Configuration script does not seem to honor LD=gcc in the same way, ie: ./configure CC=nvcc LD=gcc still tries to link everything with nvcc which promptly fails because nvcc does not support the option '-soname' without which the project will not link correctly. What am I doing wrong? How can tell the config script to link with gcc?

View 1 Replies View Related

Software :: Make Error When Compiling Courier-authlib-0.55 - /usr/bin/ld: Cannot Find -linker

Feb 10, 2010

I have been struggling to install courier-authlib. I have tried several version from 0.55 to the latest and I keep receiving the same error.

Linking libauthvchkpw.la
/usr/bin/ld: cannot find -linker
collect2: ld returned 1 exit status
make[2]: *** [libauthvchkpw.la] Error 1

[code]...

I have been googleing for the past week to try and resolve this with no joy. any help would be greatly appreciated. I am installing on CentOS 5.3 with config options as follows...

./configure --prefix=/usr/local --exec-prefix=/usr/local --with-authvchkpw --without-authldap --without-authmysql --disable-root-check --with-ssl --with-authchangepwdir=/usr/local/libexec/authlib --with-redhat

and when I run the make commands I receive the peceeding errors (above)

View 3 Replies View Related

Programming :: GCC Linker Failed To Link ?

Apr 7, 2011

In linking a library in using GCC.

I am compiling Pro*C code.

When the maKe file start compiling if prints following :

Code:

I tried different options but unable to find the reason why it is not linking the libraries correctly.

View 3 Replies View Related

Programming :: Linker Error Using Cross Compiler

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

Programming :: How To Write A Lds - Linker Script - File?

Oct 13, 2010

I first found something called lds(linker script) file.

And now I am willing to do a test with __attribute__((section)) to make a function stay in a private section. Sounds fun to me.

Part of my source code looks like this

By objdump, I didn't find a section called "my_own".

View 2 Replies View Related

Programming :: Undefined Reference To 'pthread_create' From Linker?

Jul 6, 2010

I am having trouble linking the pthread library.I have -lpthread -lm as options for the GNU GCC compiler.

Build Log
Compiling: main.c
Compiling: matrix.c

[code]...

View 2 Replies View Related

Programming :: Linker Error - Couldn't Get The Program To Link

Jul 9, 2010

I have a simple C program which uses ncurses library and I am having linker issues and couldn't get the program to link.

[Code]...

So I think the ncurses libraries are in place but gcc still couldn't link. I am totally stumped.

View 3 Replies View Related

Programming :: Get Ride Unwanted Compiler / Linker Output

Jul 18, 2011

I am using g++ 4.5.2 I copied and tried a piece simple (Making a Class Writealbe to a Stream) program, from page 363 of book(C++ cookbook), Example 10-6 your can download and test by yourself [URL]

[Code]....

View 1 Replies View Related

Programming :: Linker Error For A Singleton Class Program

May 5, 2011

I am getting a linker error for a simple program to represent a singleton class.

Find below the program which I have written:

View 3 Replies View Related

Programming :: Java Non-static Variable Cannot Be Referenced From A Static Context

Feb 12, 2010

I'm having some problems on the line with ***. This is from a OpenEntidade.java class file and I'm trying to update EmprestadorView's variables.

EmprestadorView.java
public class EmprestadorView extends FrameView {
...
OpenEntidade.java
-----------------
public class OpenEntidade extends javax.swing.JFrame {

[code]....

View 2 Replies View Related

Programming :: Compiling Mplayer - Boat Load Of Linker Errors

Mar 30, 2011

I did a ./configure and make and got this returned about 1/2 hr later:

Code:
undefined reference to `glDisable'
undefined reference to `glDisable'
undefined reference to `glutKeyboardFunc'
undefined reference to `glutSpecialFunc'
undefined reference to `glReshapeFunc'

And the oddest part is.... I passed --disable-gl to configure!

View 4 Replies View Related

Programming :: C++ Link Error - File Format Not Recognized - Treating As Linker

Apr 22, 2010

I am trying to compile a software using a provided sdk. I suspect that the sdk has some mismatch of the platform library, but I am not sure.

The error I got is

Code:

The libidata.so.42 is there in that folder. I guess the file might be in a big endian. Is there a way to check if the libidata.so.42 i have might be a big endian format, rather than little endian?

If my guess is incorrect, This is a c++ code on fedora x86 machine.

View 4 Replies View Related

Programming :: Linker: Fatal Error LNK1104: Cannot Open File 'tbb_debug.lib'

Jan 16, 2011

Recently I have downloaded TBB and I want to run a program using its libraries. But I encountered the following error: Linker: fatal error LNK1104: cannot open file 'tbb_debug.lib'

View 1 Replies View Related

Ubuntu :: Configure Two Static Ip

Apr 26, 2010

is it possible to configure one static ip such as 203...... and then 192....

View 9 Replies View Related

Fedora :: Configure A Static IP Address (14)?

Apr 3, 2011

I am trying to establish a static IP address using the instructions I found at:I cannot find this file in Fedora 14:Code:/etc/sysconfig/network-scripts/ifcfg-Auto_eth0

View 8 Replies View Related

Programming :: Linker Error "undefined Reference" With G++

Jul 30, 2010

I am facing some problems when i am trying to link using g++. The linker error text is "undefined reference to `std::vector<std::string, std::allocator<std::string> >::end()'"

View 3 Replies View Related

Programming :: Package That Has To Configure With "make Menuconfig"?

Jan 19, 2011

I have a package that has to configure with "make menuconfig". I want to make this automatically. Usually I save the .config-File and replace the config with a skript, but the package I have to install has no .config. The manuall told me that I have to make the following steps:./configure --with-linux...makemake installIs it possible to use the saved .config-file?

View 1 Replies View Related

OpenSUSE Network :: Configure Static Ip Using The Terminal

Jan 24, 2010

I was trying to configure a static Ip on openSUSE but didn't get very far...I would like to do it through the terminal.

View 4 Replies View Related

Ubuntu Networking :: Configure Static IP - Use Of 'network'?

Apr 15, 2011

I'm setting up a home webserver with Ubuntu 10.10 and want to configure the interface to static. I'm using a router, which is setup and working correctly. I have been using linux workstation with dhcp for some time.

I've edited my interfaces file to reflect the parameters for setting static ip, with the exception of 'network'. No matter what I put into this setting, it causes me to loose connectivity to the outside world. I've tried to put my router IP, and my IP set by my provider. What should the 'network' value be?

At this time, my 'interfaces' files only includes the following and has connectivity out to the internet:

Code:

Do I need the 'network' settings as shown in every tutorial (but never explained)?

View 1 Replies View Related

Networking :: Configure Static Routing Between Two Different Subnets

Aug 25, 2010

In configuring static routing between two different subnets.

I have two different subnets as mentioned below:

I have a linux machine with two NICs on which i would like to configure static routing. details of the NICs are as mentioned below:

I have configured the gateway as 10.77.77.1 on machines which fall under 10.77.77.0/24 subnet and 172.16.40.1 on 172.16.40.0/24 machines.

My main motive here is i want communication to happen between both the subnets.

If the following modifications to route-eth0 and route-eth1.

View 3 Replies View Related

Ubuntu Installation :: Configure A Static IP Address On Karmic?

Jan 22, 2010

I am currently using transmisson on ubuntu 9.10 however want to switch over to Utorrent using wine to get more options as rss feeds etc.. I will still use transmission some aswell.

I want to see if there is a guide on how to configure a static IP address on karmic?

I have found the following how to on port forward (my router WNDR3300 for utorrent) [URL]..but this pertains to using windows and not linux. I am also a linux noobie.

View 7 Replies View Related

Ubuntu Networking :: Configure Wlan0 Interface With Static Ip?

May 19, 2010

I've looked everywhere and tried everything. All I want to do is set up a static ip with my wireless network interface wlan0.

View 5 Replies View Related

Server :: How To Make A Static IP

Apr 17, 2010

I'm trying to build a server at the moment.How can I assign the server a static IP?

View 3 Replies View Related

Ubuntu :: Make HDDs Have Static /dev/sd*?

Feb 26, 2011

I'm having a little trouble with a mdadm RAID array at the moment in which the four hard drives in the array change their /dev/sdb /dev/sdc /dev/sdd/ /dev/sde placement on every reboot.

View 5 Replies View Related

Ubuntu :: 10.4: Networking - Using Bind9 And Dhcp3 - Properly Configure Static Wired Connection?

Jun 15, 2010

v10.4 {I have completely re-edited this thread because I have started over fresh. I am no longer using bind9, but now using the installation-defaults nameserver and dhcp and trying to get a handle on how things ought to be setup properly. My previous attempts was a disaster.}

Coming fresh out of a newly installed 10.4, I obviously was able to get network connectivity but then I ran into trouble the minute that I tried to change eth0/eth1 connections via network-manager's applet. What I found was, that when I attempted to define static connections, all bets were off. It seems that once one attempts to change eth0/eth1 which are wired devices, I was no longer able to recover my network connectivity!

I was however able to setup a wireless connection, so in this way I was able to get back network (and Internet) connectivity, and write this thread on this forum. I notice also, that there is no longer 'Networks' in the System->Administration menus! Geez, what the hell is going on? how to properly configure my static wired connection? Networks in 10.4 have really changed alot!

View 2 Replies View Related

Debian :: Configure Static Ip For Removable Hard Drive Install For Use On Multiple Machines?

Sep 13, 2010

ok I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around the lab to different computers. My question is what do I configure to get Debian to be ok with my using different nics at different times.

My first time I used it, I had eth0, but now I'm on a different computer (same type of hardware on all systems) but my nic is now eth1... And I had to set up static again for that nic. How can I have it just maintain a static ip for whatever nic/mac address on the computer that my hard drive happens to be put on?

View 1 Replies View Related

Networking :: Configure Static Ip For Removable Hard Drive Install For Use On Multiple Machines?

Sep 13, 2010

I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around the lab to different computers. My question is what do I configure to get Debian to be ok with my using different nics at different times. My first time I used it, I had eth0, but now I'm on a different computer (same type of hardware on all systems) but my nic is now eth1... And I had to set up static again for that nic. How can I have it just maintain a static ip for whatever nic/mac address on the computer that my hard drive happens to be put on?

View 5 Replies View Related

Ubuntu Networking :: Make Home Server Use A Static Ip Address?

Mar 15, 2010

i have followed multiple guides to make my home server use a static ip address. no matter what i do it always reverts back to its dhcp address after about 2 minutes. how do i get the static ip address to stick, or be permanant.

View 9 Replies View Related

Slackware :: SlackBuild To Make Both STATIC And SHARED Wireless-tools Package?

Jan 31, 2010

I don't use wireless tools myself currently, since I'm wired to the internet; but, I found that a package I wanted to build, required at the least, a shared version of libiw, if not both the shared AND static version. Symptoms of when you are in this boat, are error messages during compiling, similar to:

Code:
/usr/lib64/libiw.a(iwlib.so): In function `iw_mwatt2dbm':
iwlib.c:(.text+0x1a77): undefined reference to `log10'
iwlib.c:(.text+0x1a84): undefined reference to `ceil'
/usr/lib64/libiw.a(iwlib.so): In function `iw_freq2float':
iwlib.c:(.text+0x1b11): undefined reference to `pow'

[Code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved