Click here to Skip to main content
15,561,290 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CBitmap::LoadBitmap Strange Result From CIMage::Load and CBitmap::Attach Pin
ForNow20-Oct-21 4:24
ForNow20-Oct-21 4:24 
GeneralRe: CBitmap::LoadBitmap Strange Result From CIMage::Load and CBitmap::Attach Pin
Victor Nijegorodov20-Oct-21 5:07
Victor Nijegorodov20-Oct-21 5:07 
GeneralRe: CBitmap::LoadBitmap Strange Result From CIMage::Load and CBitmap::Attach "used TransparentBLT thank you all" Pin
ForNow20-Oct-21 9:46
ForNow20-Oct-21 9:46 
QuestionLinking to bluetooth library - voluntarily moved from "quick answers" forum Pin
Member 1496877118-Oct-21 7:15
Member 1496877118-Oct-21 7:15 
AnswerRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
k505418-Oct-21 7:56
mvek505418-Oct-21 7:56 
AnswerRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
k505418-Oct-21 8:05
mvek505418-Oct-21 8:05 
AnswerRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
Member 1496877119-Oct-21 6:54
Member 1496877119-Oct-21 6:54 
GeneralRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
k505419-Oct-21 8:19
mvek505419-Oct-21 8:19 
Firstly:
OLLECT_GCC_OPTIONS='-L/usr/lib/x86_64-linux-gnu'
That's a bit odd. If you are compiling for arm, you should not be including anything from the x86_64 lib tree.

Secondly you seem to be confusing the difference between a software package, and its contents. The package is libbluetooh-dev. It has headers, documentation and other files that are needed to compile a program that uses libbluetooth. The package libbluetooth3 contains the shared library: /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.xx.yy, so you should ask to link only with -lbluetooth

Thirdly: if you've installed the gcc cross-copmiler tools correctly, it should know how to find libm without any additional help from you. Consider the following very simple program
C
#include <stdio.h>
#include <math.h>

int main()
{
    printf("%f\n", lgamma(2.0));

    return 0;
}
In order to compile it, we need to include libm. On my X86-64 computer I do
gcc example.c -o example -lm
to create an x86-64 executable program. To create an ARM version I do
gcc-arm7 example.c -o example-arm -lm
I now have 2 versions of the example program, one for X86-64 and one for ARM e.g.
k5054@loaclhost $ file example example-arm
example:     ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=c5d319f4b896ad825b708ff73a248ed23f64489f, for GNU/Linux 3.2.0, not stripped
example-arm: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=1bc8369c7de09a7510c93c0bcab5824c6342d688, for GNU/Linux 3.2.0, not stripped
Are you sure you've installed the cross compiler correctly and can produce simple programs (like example.c above or a basic hello world) that can run on the RPI?
Keep Calm and Carry On

GeneralRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
Member 1496877119-Oct-21 8:36
Member 1496877119-Oct-21 8:36 
GeneralRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
Member 1496877121-Oct-21 10:00
Member 1496877121-Oct-21 10:00 
GeneralRe: Linking to bluetooth library - voluntarily moved from "quick answers" forum Pin
Richard MacCutchan21-Oct-21 22:33
mveRichard MacCutchan21-Oct-21 22:33 
Generall:libbluetooth.a ?? Pin
Member 1496877122-Oct-21 9:00
Member 1496877122-Oct-21 9:00 
QuestionLatest Visual Studio (16.11.5) does not show the Resources or Classes (C++/MFC) Pin
Maximilien18-Oct-21 5:43
Maximilien18-Oct-21 5:43 
AnswerRe: Latest Visual Studio (16.11.5) does not show the Resources or Classes (C++/MFC) Pin
Mircea Neacsu18-Oct-21 6:08
Mircea Neacsu18-Oct-21 6:08 
AnswerRe: Latest Visual Studio (16.11.5) does not show the Resources or Classes (C++/MFC) Pin
Victor Nijegorodov18-Oct-21 10:21
Victor Nijegorodov18-Oct-21 10:21 
AnswerRe: Latest Visual Studio (16.11.5) does not show the Resources or Classes (C++/MFC) (FIXED) Pin
Maximilien21-Oct-21 7:11
Maximilien21-Oct-21 7:11 
QuestionDialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
ForNow17-Oct-21 6:52
ForNow17-Oct-21 6:52 
AnswerRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
Richard Andrew x6417-Oct-21 15:50
professionalRichard Andrew x6417-Oct-21 15:50 
GeneralRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
ForNow17-Oct-21 16:31
ForNow17-Oct-21 16:31 
AnswerRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
Richard MacCutchan17-Oct-21 23:02
mveRichard MacCutchan17-Oct-21 23:02 
QuestionInserting a Bitmap into a RichEditctrl Pin
ForNow13-Oct-21 15:08
ForNow13-Oct-21 15:08 
SuggestionRe: Inserting a Bitmap into a RichEditctrl Pin
David Crow14-Oct-21 10:10
David Crow14-Oct-21 10:10 
GeneralRe: Inserting a Bitmap into a RichEditctrl Pin
ForNow14-Oct-21 10:49
ForNow14-Oct-21 10:49 
QuestionUnable to initialize of clear initial buffer or value of richeditcontrol Pin
ForNow7-Oct-21 14:15
ForNow7-Oct-21 14:15 
AnswerRe: Unable to initialize of clear initial buffer or value of richeditcontrol Pin
Richard MacCutchan7-Oct-21 22:53
mveRichard MacCutchan7-Oct-21 22:53 

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.