linker-error

CVTRES : fatal error CVT1106: cannot write to file

Moving a project to different computer and trying to compile it there, produces the following error: CVTRES : fatal error CVT1106: cannot write to file .\Debug\Project.res : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Environment is Visual C++ 6, but quick search from the internet hinted that it mig...

Linking error in C++

Problem fixed. Thanks a lot! I am having the following error in the code shown below: Error is as follows: $ g++ main.cpp Neighbor.cpp Graph.cpp /tmp/ccclDcUN.o: In function main': main.cpp:(.text+0xc1): undefined reference to Graph::add(int, Neighbor&)' main.cpp:(.text+0xd3): undefined reference to `Graph::add(int, Neighbor&)' collec...

glew32.lib linker error

Hi I am writing a basic toon shader in OpenGL. I am using MSVC 2008. I have included the GLEW libraries. I have also set the additional dependencies in linker. But I am getting the following error: LINK : fatal error LNK1104: cannot open file 'glew32.lib' Can someone please help me? ...

Boost lib linker error Visual C++

I downloaded the source for Launchy and am trying to build it in Visual Studio 2005. The Launchy project is built using VC7 so I had to update the project files to VC8 and that process seemed to go well. However, Launchy also uses the Boost 1.33.1 libs and what I have built are the Boost 1.41.0 libs (props to Boost for making the more ...

C++ GNU Linker Errors

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...

Is there an automated program to find C++ linker errors?

I'm working in a Linux environment with C++, using the GCC compiler. I'm currently working on modifying and upgrading a large pre-existing body of code. As part of this, it has been necessary to add quite a large number of small references throughout the code in a variety of places to link things together, and also to add in several new...

How do I add the library to link the OpenGL framework in iPhone SDK?

I am trying to study OpenGL and I have the framework added, but I am getting linker errors. I believe the issue is adding the library to the project for linking and EVERY time I try to add a library, I hunt around for the configuration setting forever. Someone, please give me the simple click-n-go answer! ...

Linker error 'unresolved external symbol' : working with templates

I have a template based class [Allotter.h & Allotter.cpp]: template <typename allotType> class Allotter { public: Allotter(); quint32 getAllotment(allotType*); bool removeAllotment(quint32, int auto_destruct = 0); private: QVector<QPair<quint32, allotType*>> indexReg; int init_topIndex; }; and it's usage is shown as [ActiveListe...

g++ linker error: Getting undefined reference error for std::hash

Hi, I'm using the unordered_map of TR1 implementation in my code and the linker gives weird errors I cannot even decipher: BPCFG.o: In function `std::__detail::_Hash_code_base<DottedRule, std::pair<DottedRule const, int>, std::_Select1st<std::pair<DottedRule const, int> >, eqDottedRule, std::hash<DottedRule>, std::__detail::_Mod_rang...

Linking error when compiling C and C++ code with g++

I am integrating a medium-sized (10,000 or so lines) program written in C into a C++ program. I have created a new class, BWAGenome as an interface to the C code, so any access to the C functions is encapsulated. I am compiling everything with the g++ compiler. The .o files are all generated correctly, but when I attempt to link them tog...

strerror_r causes error when compiling on SunOS (C Programming)

I have a C program which compiles and runs fine under Linux without any warnings, but when trying to compile it on SunOS, I get the following warning: test.c: In function `my_function': test.c:412: warning: implicit declaration of function `strerror_r' Undefined first referenced symbol ...

xerces-c++ compile/linking question

After installing Xerces-C++ (XML library): ./configure --disable-shared ./make ./make-install ldconfig And writing the simple program (xmlval.cpp): #include <stdio> #include <xercesc/dom/DOM.hpp> int main() { std::cout << "HI" << std::endl; } And compiling: /usr/bin/g++ -L/usr/local/lib -I/usr/local/include -o xmlval xmlval.c...

"Undefined Reference" Error From ld

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...

Multiple files in Dev-C++, Linker Error. Templates.

I apologise for what I'm pretty sure is a fairly stupid question, but I can't get it to work! I'm also not sure what information is too much information so I probably won't give enough info so sorry for that too - just ask. I began writing a class within main.cpp, and it got large so I decided to shift it to a different source file. I'...

Symbols missing in map file

When i generate the map file for my dll(which is statically linked to other libs) it does produce all symbols. For e.g. the map will only show these entries for function defined in file l2cap.c .text 0x6e30b930 0x60dc ......\bin\libGCIStack.a(l2ca_main.o) 0x6e30b930 L2CA_Process 0x6e3...

Link error LNK2005 when trying to compile several CUDA files togheter

I have a CUDA program that works fine, but that is currently all written in one file. I'd like to split this big file into several smaller ones, in order to make it easier to maintain and navigate. The new structure is : foo.cuh foo.cu bar.cuh bar.cu main.cu The .cuh header files contain structs and function prototypes, and the .cu f...

Linker error when compiling boost.asio example

I am trying to compile a boost.asio example, but I get the following linker errors: "undefined reference to _Unwind_Resume'" and "undefined reference to__gxx_personality_v0'". I've been searching google for a long time, but nothing helped. Which library do I need to link? Thanks in advance! ...

LNK2005 Error when trying to override global new and delete operators

I have a C++ project that has been compiling and linking without problems. Recently we added code to override the global new and delete operators and now the project fails to link with the error: error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined. I have spent a lot of time googling this problem and...

Linking error: Undefined Symbols, lots of them (cpp cross compiling)

Hello, I get to the very last linking command (the actual executable is being linked) but i get a BUNCH of undefined symbols (and they're in cpp and look so scary to me, a simple c programmer) --its probably something simple but i cant get what im supposed to put as linker (its using gcc here...? is that appropriate? g++ told me too ma...

x64 Newbie Question: Building x86 code in an x64 (Visual Studio 2008) Environment?

I want to build a library (poco-1.3.6p2-all, for what it's worth) for x86. I just set up a new (clean) Windows 7 64 bit machine and I installed Visual Studio 2008 Standard. Nothing installed up to now on this box has had an installation error. The same library has built flawlessly on a Windows XP 32 bit system with VS 2008 Standard ins...