Very sorry if this question has been asked numerous times, but I can not find a precise reference :( The problem is:
I have a DLL file along with corresponding LIB file compiled with VC++ 08. Now I want to dynamically link it with another application I am compiling using g++.
Is it possible?
What linker options will I have to give in ...
I still can't get it to work..
After I had to separate implementation from definition of one of my generic classes because of a forward declaration, i now get Linker errors when trying to build.
IShader.h:
template <typename ShadeType>
class IShader {
public:
template <typename T>
bool getProperty(const std::string& propertyName, Sh...
Hi,
I work in project in which I have the following code:
file1.c
extern const int z;
int x;
do_some_stuff_to_calculate_x();
y = x / z;
do_some_stuff_with_y();
file2.c
const int z = Z_INIT_VALUE; // some value defined in some .h file.
The point of interest is the division in file1.c . Since z is extern, so it is not known in comp...
I am using Xcode 3.2.1 in project, where Base SDK is iPhone Device 3.0 and iPhone OS Deployment Target is iPhone OS 2.0, in other words a backwards compatible application.
The problem is MapKit Framework. It's added as Weak linked library, but the app just does not link for "Device - 2.2.1" target. I have run out of ideas... What else ...
I'm creating a COM DLL in Visual Studio. The linker generates an import library for the DLL. I don't need the import library.
Is there any way to tell the linker not to generate it?
...
Hi there!
This isn't as naive as the title may lead you to think.
I receive an "Undefined Reference" Error from the linker/ld for a couple of function symbols in third party shared library, that I'm trying to link with my executable.
The strange part is, that library itself is supposed to contain the definition for the offending symb...
I have built libshared.so with is dependent on libshared_dependent.so
Now, I am compiling app.bin which is using libshared.so, Now at compile time gcc wants me to specify -lshared_dependent other wise it gives error that some symbols not found.
Is there any way by which, At compile time I don't need to specify -lshared_dependent, I wan...
On my linux box, I have 2 libraries:
libfoo1.a and libfoo2.a
and they both contain an implementation of
void foo(int)
and my main program calls foo:
int main() { foo(1); return 0; }
I compiled the program two ways using g++
g++ main.cpp libfoo1.a libfoo2.a -o a1.out
g++ main.cpp libfoo2.a libfoo1.a -o a2.out
When I run the ...
I have a problem with python-config --ldflags on OS X 10.6.2.
Using my non-system python.org python install:
robin-mbp:~ robince$ which python
/Library/Frameworks/Python.framework/Versions/2.5/bin/python
robin-mbp:~ robince$ python-config --ldflags
-L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config -ldl -lpython2....
I know that all forums are full of such question, but I've tried few hooks, and they doesn't work (or I do them bad).
So, I've got:
main.cpp <- fawn.h <- connector.cpp (defenition) <- conncetor.h (declaration)
<- portl.cpp (def) <- portl.h (dcl) <- connector.h
with include guard (thanks to Igor Zevaka a...
I am linking a (Python extension) library that embeds the Matlab engine with the following command (generated using cmake)
c++ -mmacosx-version-min=10.6 -bundle -headerpad_max_install_names -o library.so library.o /Applications/MATLAB_R2009b.app/bin/maci64/libeng.dylib /Applications/MATLAB_R2009b.app/bin/maci64/libmx.dylib -framework P...
I have built a standalone executable which references my .so object.
both are in the same directory. when I try to run executable it gives me the following error:
ld.so.1: myExec: fatal: libMine.so:
open failed: No such file or directory
what am I doing wrong?
...
I have encountered an unexpected Access Error while running a project I've built using two different versions of Visual Studio. My general configuration is as follows:
LibA is a static lib, static runtime linkage, msvc 8.0
LibB is a static lib, static runtime linkage, msvc 9.0
My target project for integration is a msvc 9.0 COM dll,...
Imagine that we have two static libraries built with different implementations of std::vector. Both of these binaries would have the code for both push_back and pop_back (since vector is usually header only). What would the linker do when we tried to use both of these libraries in a project. Would it give an error? Could the linker remo...
So I'm getting this error on build:
This obviously has something to do with linking, but I just can't get what exactly. I have 2 targets, and I only get this error when I compile for the device target (other target is for simulator use). I compared the linking settings for each target and everything seems fine.
InfoView is the last c...
How to tell ghc to tell ld to link compiled binaries to SDL library?
I have a source.hs :
import Prelude
import Graphics.UI.SDL as SDL
import Data.Maybe
import GHC.Word
import Control.Applicative
...
When I do:
ghc source.hs
I get a bunch of linking errors similar to this one:
pong.o: In function `...
I am using VC 2008 express, and tried to compile my own PHP extension with that. Any idea about the following error?
------ Rebuild All started: Project: xsplit, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'xsplit', configuration 'Debug|Win32'
Compiling...
xsplit.cpp
c:\x\php-5.3.1\zend\zend_exec...
I got this error message:
multiple definition of `GamepadControll::GamepadControll()'
After being frustrated for hours I reduced the code to:
GamepadControll.h:
#ifndef GAMEPADCONTROLL_H_
#define GAMEPADCONTROLL_H_
#include <iostream>
class GamepadControll {
public:
GamepadControll();
virtual ~GamepadControll();
};
#en...
I'm cross-compiling an application, but linking blows up with an error that it "cannot find /lib/libc.so.6". The libc.so.6 that it should be using is the one that sits at /home/work/worldcom/filesys/lib/libc.so.6. What have I got wrong here?
linking libobj.so
arm-none-linux-gnueabi-g++ obj1.o obj2.o obj2.o -o libobj.so -L/home/work/wo...
Apologize because for the moment I don't have the environment to experiment and sort out the following questions myself:
1) Let's say I have four library files: libmylib_super.a and libmylib_super.so, mylib_dumb.a and mylib_dumb.so. While specifying libraries to link to, what are the differences between the following approaches:
A) -l:...