undefined-reference
undefined reference when using extern
I have the following setup (hopefully this is not too bare an example): A.h typedef std::map<unsigned int, float> MyClass;[详细]
2023-01-15 16:56 分类:问答c++ " undefined reference to 'Foo::Foo(std::string)' "
I\'m not too familiar with c++ and how instantiating objects wo开发者_如何学Crk, so this is probably a very simple thing to solve.When I compile with g++ I get the error \" undefined reference to \'Fo[详细]
2023-01-15 15:54 分类:问答undefined reference error
i got undefined reference error from my main function, but i can not find the problem. my files are: //Student.h[详细]
2023-01-15 15:24 分类:问答gcc wont compile and run MySQL C libraries
#include <my_global.h> #include <mysql.h> int main(int argc, char **argv) { printf(开发者_如何学Go\"MySQL client version: %s\\n\", mysql_get_client_info());[详细]
2023-01-10 13:12 分类:问答Problem using SDCC in a Makefile during the link step
The Small Device C Compiler (SDCC) will produce a ihx (Intel Hex) file even if there are undefined reference errors during the link step.This behavior causes problems when using SDCC in a Makefile bec[详细]
2023-01-08 16:42 分类:问答Getting undefined references when linking against a static library
I made a static library with GCC. Building of the library was OK. When I use it the linker throws undefined reference errors on some functions. But nm says the functions are defined and exported in t[详细]
2023-01-06 12:35 分类:问答Undefined symbols error when using a header file
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[详细]
2023-01-02 10:46 分类:问答Oh no, not another Undefined Reference question!
Unfortunately yes. I have my shared library compiled, the linker doesn\'t complain about not finding it but still I get undefined reference error. Thinking 开发者_Python百科that I might be doing some[详细]
2022-12-29 21:27 分类:问答In function `_start': init.c:(.text+0x30): undefined reference to `main'
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.[详细]
2022-12-28 18:49 分类:问答Using library files in Linux
I\'m trying to use some of the functions that are in the /lib/libproc-3.2.6.so library in my Ubuntu distribution.[详细]
2022-12-26 15:01 分类:问答