linker

How to recover from lost source code?

I have a one-function DLL that exports GetHash(). However, the source code for this DLL is lost. I need to integrate this code into my MSVC++ project. I know that there are some shareware tools for doing this, but I think that I can do it manually. What do I need to do, to accomplish this manually? ...

Python dlopen/dlfunc/dlsym wrappers

Anybody knows if actually exists a wrapper or ported library to access to Unix dynamic linker on Python? ...

Function-LeveL Linking (/Gy switch in VC++) - What is it good for?

What is there to gain from the use of this switch in a large VS solution (200 VC projects)? From what I understand this mainly effects the size of the resulting binaries; but aside from smaller binaries, could FLL also help in reducing dependencies between projects? How does FLL usually effect build times? I'd also appreciate an educa...

Declaring class objects in a header file

Greetings everyone. I seem to be snagging on a fundimental but I cant find the solution anywhere. Anywho, will go ahead and explain. I have a program consisting of three files; main.ccp, add.h, add.cpp. I declare the class 'SA' in add.h and have all my functions defined in add.cpp additional.h class SA { ... public int x; } ...

Visual Studio won't make debug DLL

Visual Studio won't make a debug DLL when I select Debug for the configuration. Instead it makes a release version. The output window show it's making a release version, even with a Debug configuration selected. The release DLL it produces has the current date. When I save the project in the Debug configuration and reload it, it has ...

How to statically link to TBB?

How can I statically link the intel's TBB libraries to my application? I know all the caveats such as unfair load distribution of the scheduler, but I don't need the scheduler, just the containers, so it's ok. Anyways I know this can be done, although its undocumented, however I just can't seem to find the way to do it right now (altho...

Linker problem

I have a problem with the linker when I build my current project. The error it comes up with is as follows: libmiinddynamic.so: undefined reference to `std::basic\_ostream<char, std::char\_traits<char> >< <double, double, SparseImplementationLib::DefaultPtr<double, double> >(std::basic\_ostream<char, std::char_traits<char> >double, dou...

Linker problem, doesn't find an existing method?

Ok, I'm having issues with the linker on my current project (This is a continuation of another question, ish) Basically, the linker gives an undefined reference in dynamiclib.so for: std::basic_ostream<char, std::char_traits<char> >& SparseImplementationLib::operator<< <double, double, SparseImplementationLib::DefaultPtr<double, double>...

Silverlight MVVM linking model and view model

There are lots of great examples around on MVVM but I'm still confused. Lets say you have a CustomerModel and a CustomerViewModel. It seems there would be a Name property on the CustomerModel and one on the CustomerViewModel. The setter on the CustomerViewModel will set the CustomerModel Name property and then call the OnPropertyChange...

What is __unwind$ in a linker map file

For VS2008 (C++) generated linker map files, what does the symbol "__unwind$" mean? I have a good chunk of them in the linker map file for my app. I have a log which says a crash happens at a particular offset say 'x'. When I look at the linker map for this offset, I find this __unwind$41357 corresponding to the offset. Also generally ...

g++ undefined reference to constructor

Hi, I'm compiling and linking a cpp file against a pre-compiled library, and I'm getting an "undefined reference" error. Firstly, this is the command (the library in question is quicknet3, the program I'm compiling is trapper): g++ -w -g -I. -g -O3 -pipe -Wall -I/home/install/x86_64/include/quicknet3 -L/home/install/x86_64/lib -lqui...

How to figure out source line number from Linker Map

For some reason I have only the linker map for an application I am debugging. There is a crash log which says crash occurred at offset "myApp.exe! + 4CA24". From the linker map I am able to locate the method. Say this is at offset "myApp.exe! + 4BD7C". Is there anyway to figure out the exact line in source code using just the above ...

Linking to Python import library in Visual Studio 2005

I have a C++ application that has embedded Python. I'm building with Visual Studio 2005. When I try to link to python26.lib, I get a number of unresolved symbols, all of which begin with "__imp": error LNK2019: unresolved external symbol __imp__Py_Initialize referenced in function _main python26.lib is an import library (installed by t...

Linker problems after switching to VS2005 from VC6 (LNK4099)

Hi, I ported one of my old projects to VS2005 and am having linker warnings such as xxxxx.lib(xxxxxxxx.obj) : warning LNK4099: PDB 'vc60.pdb' was not found with ...; linking object as if no debug info Now, I've tried rebuilding the project but the warnings won't go away. Is it really supposed to be looking for vc60.pdb and not vc8...

Visual C++: How to disable specific linker warnings?

I'm using a library from CGAL which during the linking stage of my code compilation produces a lot of linking warnings of this form: warning LNK4099: PDB 'vc80.pdb' was not found with 'gmp-vc80-mt-sgd.lib' or at 'vc80.pdb'; linking object as if no debug info How do I turn off this specific linker warning under Visual C++/Studio 2008? ...

How can I link against the debug/release libraries automatically in VC++ 6.0?

I am trying to maintain a program written 5 years ago in VC++ 6.0. It uses our 'common' libraries. The trouble I have is that it either links against the debug version of these libraries or the Release version, depending on whether I have the [Directories] for [library files] set to "common/debug" or "common/release" in [Tools]->[Options...

The State of Linkers for .NET apps (aka "Please Sir, May I have a Linker" 2009 edition)

Many people here are probably familiar with one of Joel Spolsky most popular blog posts, Please Sir, May I Have a Linker, where he cries out for a way to remove dependencies on the .NET framework so a stand-alone application can be developed and sold. Jason Zander of the Visual Studio development team, at the time, replied with his view...

creating shared library using other library in linux

I have a shared library say "libeval.so". I am using this in my project to create on more shared library called say "lidpi.so". The library called "libdpi.so" is used by a tool. Now, this tool cannot see any other library other than "libdpi.so". I am using few function calls that are present in "libeval.so", and these are not present in ...

Problem Extending Python(Linking Error )?

I have installed Python 3k(C:\Python30) and Visual Studio Professional Edition 2008. I'm studying this. Here is a problem: C:\hello>dir Volume in drive C has no label. Volume Serial Number is 309E-14FB Directory of C:\hello 03/21/2009 01:15 AM <DIR> . 03/21/2009 01:15 AM <DIR> .. 03/21/2009 01:14 AM ...

Can someone explain this linker difference between g++ 3.4.2 and g++ 4.1.2?

I just moved some code from one platform to another which required a change in compiler versions. Two of the utility sources caused linking problems with undefined symbols, for this example call them Foo.c and Foo.h. Everything was compiling and linking fine with g++ 3.4.2 and I figured the switch to g++ 4.1.2 would be a no brainer. W...