I am migrating my code from the builder 6 to embarcadeiro xe2 c++. The files.Cpp are constructed separately without problems, however when I build all comes the following error message-> [ILINK32 Error] Fatal: Unable to open file 'TYPINFO.LIB' FAILED! And the process ends! Can anyone help me?

Member Avatar
Member Avatar
+0 forum 1

Hi I'm trying to create a program that gathers data from some ADC connected and do some averaging on the data. It's build up around classes containing systeminterface and sensors making a datamodel. The program is pretty big, but has worked intil implemention of pthreads I wanted to create a thread maintaining the sensors an averaging a couple of samples. I ran into the problem about callback, and classes, googled and found a workaround :) But i'm getting this linker error and I cannot figure out where. [CODE] h2SystemInterface.o: In function `H2SystemInterface::H2SystemInterface()': h2SystemInterface.cpp:(.text+0x665): undefined reference to `H2SystemInterface::threadCaller(void*)' h2SystemInterface.cpp:(.text+0x66c): undefined reference …

Member Avatar
+0 forum 0

Hey guys, I just started to try and use OpenGL and I wanted to run an example but I get linker errors. The code is just fine but it has linker errors says the console. Linker Errors/Console: [CODE] [Linker error] undefined reference to `glFinish@0' [Linker error] undefined reference to `wglSwapBuffers@4' [Linker error] undefined reference to `wglSwapBuffers@4' [Linker error] undefined reference to `wglGetCurrentContext@0' [/CODE] There's more but it would be too time consuming to copy and paste each line. This is the OpenGL example: [CODE] #include <iostream> #include <stdlib.h> //Needed for "exit" function #include <GL/glut.h> using namespace std; //Called when a …

Member Avatar
Member Avatar
+0 forum 5

In my program that uses separate compilation, the only problem I have left is a linker error. To see if it was just a syntax error somewhere obscure, I made a simple "hello world" program that uses separate compilation. I get the same error. The code is below. If someone knows what is wrong, that would be awesome if they could help. The header file: [CODE] //file name: Hello.h #ifndef HELLO_H #define HELLO_H #include <iostream> using namespace std; class Hello { public: Hello(int x); }; #endif //HELLO_H[/CODE] The implementation file: [CODE] //file name: Hello.cpp #include <iostream> #include "Hello.h" using namespace …

Member Avatar
Member Avatar
+0 forum 6

I use Visual Studio 2005 on windows XP. I'm trying to use "Google Test" framework. But i couldn't manage to make just one test because of linker errors. I built Google Test, thank created new project. Then made the steps written in [URL="http://stackoverflow.com/questions/531941/how-to-setup-google-c-testing-framework-gtest-on-visual-studio-2005"]this link[/URL] to the project properties file. Than i tried to build and following errors occured. Can you help please? Thank you. [CODE] #include "gtest/gtest.h" TEST(sample_test_case, sample_test) { EXPECT_EQ(1, 1); } int main(int argc, char** argv) { return 1; } [/CODE] [CODE]1>------ Build started: Project: dene3, Configuration: Debug Win32 ------ 1>Compiling... 1>try3.cpp 1>Linking... 1>libcpmtd.lib(ios.obj) : error LNK2005: "private: …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I'm trying to compile a socket program in DevC++ but everytime I do it I get a lot of linker errors like these: [CODE] [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `htons@4' [Linker error] undefined reference to `inet_pton' [Linker error] undefined reference to `socket@12' [/CODE] I have previously run the socket program successfully in Linux but I have to export it to WindowsXP, and I must admit I'm relatively new to programming in WindowsXP. These are the header files I used in the WindowsXP version: [CODE] #define WIN32_LEAN_AND_MEAN #include <windows.h> //#include <winsock.h> #include <winsock2.h> …

Member Avatar
Member Avatar
+0 forum 4

The End.