Click here to Skip to main content
14,177,166 members

C / C++ / MFC

 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 7:50
memberVaclav_4-Dec-18 7:50 
QuestionRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 8:55
protectorRichard MacCutchan4-Dec-18 8:55 
AnswerRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 9:02
professionalJoe Woodbury4-Dec-18 9:02 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 12:33
memberVaclav_4-Dec-18 12:33 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 12:36
professionalJoe Woodbury4-Dec-18 12:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 15:15
memberVaclav_4-Dec-18 15:15 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 18:48
professionalJoe Woodbury4-Dec-18 18:48 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_5-Dec-18 4:35
memberVaclav_5-Dec-18 4:35 
Found this procedure , for Eclipse IDE, which puts difffernt spin onto the problem.

To me it implies that linker can use "source" instead of library.


To use the latest Bluetooth kernel modules is one important thing, but without support from the user space these modules are useless. For the minimal functionality the bluez package is needed.

bluez-5.50.tar.xz 


2. Copy and paste the extracted folder (named something like bluez-5.31) to the usr\include folder.
3. 
4. 
5.  The path to usr\include folder may look something like this C:\Intel\iotdk-ide-win\devkit-x86\sysroots\i586-poky-linux\usr\include
6. Now on Eclipse (assuming your project is open) add the linker flags for your project. On Eclipse's menus select Project>Properties>C/C++ Build>Settings>Tool Settings>Cross GCC Linker>Miscellaneous, add the flag "-bluez-3.1" and click OK.
Note: This flag is basically a "-" character concatenated with the name of the bluez folder.
   4. Edit the header calls on your main file; add the path to where the header files needed are. In this case bluetooth.h, hci.h and hci_lib.h are inside bluez 5.31, header calls should look something like these:
#include "bluez-5.31/bluetooth.h" 
#include "bluez-5.31/hci.h" 
#include "bluez-5.31/hci_lib.h"
   5. Proceed to save (Ctrl + S) and Build Project.
 
 


Unfortunately Linux / Eclipse (?) won't let me add the "extracted folder" into /usr/include - need permission.


I added full path to my Bluez-5.50 and linker did not complain about that but the overall result was - now getting more errors.

I am going to look into linker "miscellaneous " options to see what is missing.

Note
the /usr/include has folder "bluetooth" which contains the needed headers.
That works fine. I have no idea how it got there.
GeneralRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 22:00
protectorRichard MacCutchan4-Dec-18 22:00 
QuestionString Search In C++ Pin
Hack Baba4-Dec-18 6:07
memberHack Baba4-Dec-18 6:07 
AnswerRe: String Search In C++ Pin
jeron14-Dec-18 6:10
memberjeron14-Dec-18 6:10 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 6:21
memberHack Baba4-Dec-18 6:21 
GeneralRe: String Search In C++ Pin
jeron14-Dec-18 7:49
memberjeron14-Dec-18 7:49 
AnswerRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 6:33
protectorRichard MacCutchan4-Dec-18 6:33 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 6:45
memberHack Baba4-Dec-18 6:45 
GeneralRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 8:49
protectorRichard MacCutchan4-Dec-18 8:49 
AnswerRe: String Search In C++ Pin
Joe Woodbury4-Dec-18 9:04
professionalJoe Woodbury4-Dec-18 9:04 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 23:58
memberHack Baba4-Dec-18 23:58 
GeneralRe: String Search In C++ Pin
Joe Woodbury5-Dec-18 6:21
professionalJoe Woodbury5-Dec-18 6:21 
SuggestionRe: String Search In C++ Pin
David Crow5-Dec-18 2:54
memberDavid Crow5-Dec-18 2:54 
QuestionCComobox::DrawItem list box entries Disappears In Release Mode Pin
ForNow3-Dec-18 16:10
memberForNow3-Dec-18 16:10 
AnswerRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
leon de boer3-Dec-18 17:43
memberleon de boer3-Dec-18 17:43 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
ForNow4-Dec-18 1:44
memberForNow4-Dec-18 1:44 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
leon de boer4-Dec-18 7:41
memberleon de boer4-Dec-18 7:41 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
Victor Nijegorodov4-Dec-18 8:27
memberVictor Nijegorodov4-Dec-18 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190526.1 | Last Updated 25 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid