undefined-reference Questions

3

Solved

Premise I’m using a C library (from C++) which provides the following interface: void register_callback(void* f, void* data); void invoke_callback(); Problem Now, I need to register a function...
Threnode asked 18/7, 2011 at 14:29

2

Solved

I'm writing a H264 parser (no OO), but I'm trying to use some modules to organize better the things. I'm having this problems: `CMakeFiles/server.dir/mainclass.cpp.o:(.bss+0x0): multiple definit...
Teenateenage asked 22/6, 2011 at 12:22

2

Solved

I'm trying to compile my first legit program that I'm converting from Java (I ran a test hello world type program to check my compiler and it works). There are three files: main.cpp #include <...
Replevy asked 8/6, 2011 at 20:16

2

Solved

Additional Questions added below, 4/11/2011 I am developing a cross-platform set of shared libraries DLLs/Sos and tester programs in C++ though I have to be able to support C. The libraries will s...

1

Solved

Using MINGW, I'm trying to link my C code with a static C++ library that performs some OLE operations: mingw32-gcc main.o resources.o -o mbcom.exe -L../../Lib/Iup -liup -liupole -lole32 -lcomctl32...
Fanchie asked 6/1, 2011 at 5:18

1

Solved

I'm new to C++, and preparing a homework by using NetBeans IDE on Ubuntu 10.04. I use g++ as a C++ compiler. The error message: build/Debug/GNU-Linux-x86/Maze.o: In function `Maze': Maze/Maze.cpp...
Thurible asked 4/11, 2010 at 20:14

2

Solved

I'm getting the following error and can't for the life of me figure out what I'm doing wrong. $ gcc main.c -o main Undefined symbols: "_wtf", referenced from: _main in ccu2Qr2V.o ld: symbol(s) ...
Raleigh asked 4/6, 2010 at 7:0

4

Solved

I have a small program that I can compile with GCC and ICC without any difficulties, but I would also like the code to work with G++ and ICPC. I tried to add this: #ifdef __cplusplus extern "C" {...
Whisenhunt asked 13/5, 2010 at 13:53

2

Solved

I'm working on a C project with around 30 source files (.c). I'm building this project on a 32 bit micro-controller(i.MX515) running on Ubuntu using GNU tools. The compilation phase completes succ...
Culmination asked 3/5, 2010 at 12:49

5

Solved

I'm currently trying to implement a factory as a singleton. I practically used the textbook example of the Singleton pattern. Here's the .h file: namespace oxygen{ class ImpFactory{ public: sta...
Haggadist asked 27/1, 2010 at 8:15

4

Solved

I have a function declared like so: template <typename T> T read(); and defined like so: template <typename T> T packetreader::read() { offset += sizeof(T); return *(T*)(buf+offs...
Ventose asked 16/3, 2009 at 0:50

© 2022 - 2024 — McMap. All rights reserved.