» Home » linking » Page 1
Link error linking from managed to unmanaged C++ despite linking to .lib file with exported symbols
Category : C & C++ & C#

Despite following various posts on using and linking to unmanaged C++ code from a C++/CLI wrapper dll, I cannot resolve these link issues.


1>MyClassAdapter.obj : error LNK2028: unresolved token (0A00000A) "public: __thiscall MyClass::~MyClass(void)" (??1MyClass@@$$FQAE@XZ) referenced in function "public: void * __thiscall MyClass::`scalar deleting destructor'(unsigned int)" (?

View Replies


How to specify base addresses for sections when linking or alternatively how to rebase a section after linking?
Category : Operating Systems

Symbols can be linked at certain addresses with defsym as illustrated here. My question is whether the same can be done with sections? That is, given some .o object file, is it possible to specify the base address that sections will be relocated to?


Alternatively, is it possible to rebase a section after the final link? That is, to change the address of a s


View Replies


How can I build a C/C++ program using `static linking` & `Dynamic linking` with gcc & Visual studio?
Category : Programming Languages

A library can be used in an application in two ways:


Statically-linked
Dynamically-linked

But how to do that using both Visual Studio (windows) & GCC?


I know libraries are distributed only in these 4 ways:


Source
header-only libraries
*.lib files for windows. *.a for linux
*.dll (windows) & *.so (linux).

Source distributi


View Replies


import = dynamic linking? & include = static linking?
Category : Programming Languages

I wonder the difference of import and include in Object-c


By the way, I am not clear about the difference of dynamic and static linking.


If I use a library with static linking,
is that mean I copy the code i need from library for my program and link with them?
Then my program can work with the code from library.


If i use a library with dynamic linki


View Replies


Android Static Linking vs Dynamic Linking against glibc
Category : Programming Languages

I have been cross-compiling some Linux tools (and some of my own C code) to Android and one of the challenges that I face is that Android's libc has some missing/stripped components and I end up patching my code to make it work with Android's libc (for e.g. a problem like this http://credentiality2.blogspot.com/2010/08/compile-ncurses-for-android.html)


Q1 : How do I go about statica


View Replies


Linking (or proper installation and linking) of jpeg-8d library
Category : Programming Languages

I need JPEG handling capabilities in my project so I decided to use jpeg-8d library, after downloading packages I've made usual ./configure; make and make install. make test returns no errors and no problems was reported during the whole process but when I opened example.c in Code Blocks 10.05 compilation failed. I've "googled" some solutions and added

View Replies


Difference between static linking and dynamic linking
Category : Web Design

What is the difference between static linking and dynamic linking?


View Replies


linking a Python module: difference between linking with `ld` and with `cc`
Category : Programming Languages

This works:


cc leveldb_ext.cc leveldb_object.cc -o leveldb.so -I /usr/include/python2.7 -lpython2.7 -lleveldb -lsnappy -shared -lc

This does not work:


cc -I /usr/include/python2.7 -g -c leveldb_ext.cc leveldb_object.cc
ld -shared -o leveldb.so -lpython2.7 -lleveldb -lsnappy leveldb_ext.o leveldb_object.o -lc

In both ca


View Replies


Implicit linking vs. explicit linking of DLL in Delphi
Category : Programming Languages

I'm having trouble getting my dll to work when using explicit linking. Using implicit linking it works fine. Would someone google me a solution? :) No, just kidding, here's my code:


This code works fine:


function CountChars(_s: Pchar): integer; StdCall; external 'sample_dll.dll';
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(Int

View Replies


C++ linking error when linking postgresql
Category : Programming Languages

When compiling my code I run into an issue as follows:


io.cpp:21: undefined reference to `PQconnectdb'

as well as all other instances of missing postgres function calls occurring in my code. Obviously this is a linking problem, I'm just not sure what the link issue is.


I'm compiling with the following:


mpiCC -c -O2 -g -Wall -Werror

View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .