Click here to Skip to main content
13,804,175 members

C / C++ / MFC

 
QuestionCComboBox list Appears After Trying to Close out Dialog Pin
ForNow4-Dec-18 17:06
memberForNow4-Dec-18 17:06 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan4-Dec-18 23:13
protectorRichard MacCutchan4-Dec-18 23:13 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 3:09
memberForNow5-Dec-18 3:09 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 3:41
protectorRichard MacCutchan5-Dec-18 3:41 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 3:50
memberForNow5-Dec-18 3:50 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 8:36
protectorRichard MacCutchan5-Dec-18 8:36 
NewsMessage Closed Pin
4-Dec-18 13:15
memberMember 140776634-Dec-18 13:15 
Question"undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 8:19
memberVaclav_4-Dec-18 8:19 
I am getting
undefined reference
error.

I have "included " relevant headers in souce files , I have "common path" in project includes (/usr/include /bluetooth ) ,
I can access "Open Declaration" in my IDE and it identifies function and its file...
I have no errors indicating missing
bluetooth/hci_lib.h
in text file...

What did I missed??


<pre>
#ifndef MODULES_M_BT_H_
#define MODULES_M_BT_H_

#include <iostream>
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>



C++ function

<pre>int C_BT::Scan(void) {
	cout << "C_BT::Scan(void)   " << endl;
	// Get bluetooth device id
	int device_id = hci_get_route(NULL); // Passing NULL argument will retrieve the id of first avalaibe device
	if (device_id < 0) {
		printf("Error: Bluetooth device not found");
		exit(1);
	}
	return 0;
}




Error



./src/MODULES/M_BLUETOOTH/CBT.o: In function `std::C_BT::Scan()':
/media/jim/DEV/eclipse-workspace/VNAR_1204/Debug/../src/MODULES/M_BLUETOOTH/CBT.cpp:42: undefined reference to `hci_get_route'
collect2: error: ld returned 1 exit status
makefile:75: recipe for target 'VNAR_1204' failed
make: *** [VNAR_1204] Error 1


Can I get a second opinion ?

Cheers
Vaclav
AnswerRe: "undefined reference " error - what am I missing ? Pin
leon de boer4-Dec-18 8:36
memberleon de boer4-Dec-18 8:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 8:50
memberVaclav_4-Dec-18 8:50 
QuestionRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 9:55
protectorRichard MacCutchan4-Dec-18 9:55 
AnswerRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 10:02
professionalJoe Woodbury4-Dec-18 10:02 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 13:33
memberVaclav_4-Dec-18 13:33 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 13:36
professionalJoe Woodbury4-Dec-18 13:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 16:15
memberVaclav_4-Dec-18 16:15 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 19:48
professionalJoe Woodbury4-Dec-18 19:48 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_5-Dec-18 5:35
memberVaclav_5-Dec-18 5:35 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 23:00
protectorRichard MacCutchan4-Dec-18 23:00 
QuestionString Search In C++ Pin
Hack Baba4-Dec-18 7:07
memberHack Baba4-Dec-18 7:07 
AnswerRe: String Search In C++ Pin
jeron14-Dec-18 7:10
memberjeron14-Dec-18 7:10 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 7:21
memberHack Baba4-Dec-18 7:21 
GeneralRe: String Search In C++ Pin
jeron14-Dec-18 8:49
memberjeron14-Dec-18 8:49 
AnswerRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 7:33
protectorRichard MacCutchan4-Dec-18 7:33 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 7:45
memberHack Baba4-Dec-18 7:45 
GeneralRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 9:49
protectorRichard MacCutchan4-Dec-18 9:49 

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
Web04 | 2.8.181218.1 | Last Updated 19 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid