Not sure why i get that, I downloaded libs from here and while I have a lib called 'libboost_regex-vc90-mt-gd-1_39.lib I don't have one which is called 'libboost_regex-vc100-mt-gd-1_39.lib', renaming the one with vc90 to vc100 works but I'm not sure if this is the ideal solution?
...
I have a rather huge .dat-file (896MB) included as a BIN resource in my project. Now I get a LNK1106 link error ("fatal error LNK1106: invalid file or disk full: cannot seek to 0x382A3920".)
I use Visual Studio 2005 under Windows XP, and have tried on a 4GB RAM machine with high Virtual Memory settings and lots of disk space.
I have tri...
Why does the following code not give me a duplicate symbol linker error for Impl?
I ran across this problem in some code I inherited and I'm recreating a shorter version here for simplicity.
I have two classes, Foo and Bar, that each define a different version of the same struct (Impl) in each of their .cpp files. So Foo.cpp and Bar.c...
Hi all,
This appears similar to an earlier post: http://stackoverflow.com/questions/335928/linux-gcc-linking-ld-cannot-find-a-library-that-exists But to the best of my knowledge, it's not exactly the same situation. The following command works:
$g++ -I../../include/ -lboost_program_options-mt rips-zigzag.cpp
However this doesn't:
$...
I have a shared library "libwiston.so". I am using this to create another shared library called "libAnimation.so", which will be used by another project. Now, the second library "libAnimation.so" can't be used in test code correctly. So I doubt that the creation of the second lib "libAnimation.so" is right. The gcc command to create this...
Hi, I wrote some code but I am unable to compile it:
#include <cstdio>
#include <vector>
using namespace std;
class Visitor;
class Land {
public:
virtual void accept(const Visitor *v);
};
class England : public Land {
public:
void accept(const Visitor *v);
};
class Russia : public Land {
public:
void accept(const...
I'm sure this question has been asked many times, but I can't figure this out. Bear with me.
So when you download a library, you get a bunch of .c and .h files, plus a lot of other stuff. Now say you want to write a program using this library.
I copy all the .h files into my project directory. It just doesn't compile.
Great, so then I...
Been banging my head agains the wall for awhile now.
My Xcode project went a little haywire while refactoring, and refused to build. I've squashed all the other errors, except one last linktime error:
Framework not found AudioUnit
I have the AudioUnit headers, the AudioUnit.framework is included in my project as it was before (Targets...
I have a Visual Studio 6 workspace I'm trying to convert to a Visual Studio 2008 solution. The output of said solution is a .dll. It has to be a .dll and it needs to statically link MFC as I can't redistribute MFC to existing customers.
The solution consists of three projects, say A, B, C. C is the Active Project, outputs the .dll and...
This is a code from linux man page....
#include <stdio.h>
#include <stdlib.h>
extern char etext, edata, end;
int main(int argc, char *argv[])
{
printf("First address past:\n");
printf(" program text (etext) %10p\n", &etext);
printf(" initialized data (edata) %10p\n", &edata);
prin...
hi am trying to compile a simple program in boost library but i keep getting linker errors
#include <iostream>
#include <string>
#include <boost\regex.hpp> // Boost.Regex lib
using namespace std;
int main( ) {
std::string s, sre;
boost::regex re;
while(true)
{
cout << "Expression: ";
cin >> sre;
if (...
Hi,
I'm trying to write a test suit for my Qt(c++) application using google test, the main problem is that my application consists of one main program and various shared libs. Everything was working just fine, until I tried to do some code coverage using gcov/lcov (which don't operate on dynamic libs), so I modified all my .pro file to ...
Hi,
I have an application that is broken into several libraries for purposes of code reuse. On Windows all I have to do is put the .dll files in the same path as the executable and it automatically finds them. On Linux (since it hardcodes the paths to things) I have to specify the environmental variable LD_LIBRARY_PATH or preload the ...
Hi all.
There is shared class. Declarator is in shared header, implementation is in main program. Main program load DLL and exec some function from it, function create object of shared class.
Test code:
shared_header.h:
#include<stdio.h>
class sharedClass{
public:
sharedClass();
};
plugin.cpp -> libplugin.dll
#include"shared_head...
I am trying to use CMake to compile a C++ application that uses the C library GStreamer.
My main.cpp file looks like this:
extern "C" {
#include <gst/gst.h>
#include <glib.h>
}
int main(int argc, char* argv[])
{
GMainLoop *loop;
GstElement *pipeline, *source, *demuxer, *decoder, *conv, *sink;
GstBus *bus;
/* Initialisation ...
Hey,
I'm trying to compile some c++ files. I'm getting the following types of errors at the linking phase (the compiling is working) -
Main.o: In function operator<<(std::basic_ostream<char, std::char_traits<char> >&,
Set const&)':
/usr/include/c++/4.3/new:105: multiple definition of operator<<(std::basic_ostream<
char, std::char_tr...
Hi! Until some time ago, I thought a .a static library was just a collection of .o object files, just archiving them and not making them handled differently. But linking with a .o object and linking with a .a static library containing this .o object are apparently not the same. And I don't understand why...
Let's consider the following ...
Hi All,
Can anyone please suggest some way we can restrict exporting of our symbols to global symbol table?
Thanks in advance
Hi,
Thanks for replying...
Actually I have an executable which is statically linked to a third party library say "ver1.a" and also uses a third party ".so" file which is again linked with same library bu...
I'm trying to link the libpng library to my iphone application, and getting this error:
ld: warning: in /opt/local/lib/libpng.dylib, file is not of required architecture
This happens when I build for the simulator or the device.
When I build a console application however, I can link in libpng just fine.
What am I doing wrong? Is the...
I'm trying to complie my program on Windows via Cygwin with the compilation command:
g++ ping.cpp -I./include -L./lib -lchartdir50
I'm using an API called ChartDirector which draws charts for me. I've never linked libraries this way before (usually I do it through Visual Studio) so i'm a little new to this. I've got a really large lis...