- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Quite strange error appears while building project: undefined reference to `function1(unsigned long, unsigned long) function1 is located in one of the project source files and corresponding# include directive does present in the source file where function1 is referenced. Did someone experience such issues ? ThanksLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem is resolved but the cause of problem remains obscure.
I changed extension of the file where function1 is defined ... from .c to .cpp. And it worked ... perhaps because the main source file (i.e. where is main function) is .cpp. Apparently, the g++ linker "doesn't like" mixing .c and .cpp sources.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page