Click here to Skip to main content
15,918,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change Dir inside CFileDialog Pin
Member 40147611-Feb-20 23:32
Member 40147611-Feb-20 23:32 
QuestionKeeping UDS_ALIGNRIGHT positioning for an updown control after moving the buddy window Pin
Alexander Kindel10-Feb-20 0:47
Alexander Kindel10-Feb-20 0:47 
AnswerRe: Keeping UDS_ALIGNRIGHT positioning for an updown control after moving the buddy window Pin
Richard MacCutchan10-Feb-20 0:58
mveRichard MacCutchan10-Feb-20 0:58 
GeneralRe: Keeping UDS_ALIGNRIGHT positioning for an updown control after moving the buddy window Pin
Alexander Kindel10-Feb-20 13:50
Alexander Kindel10-Feb-20 13:50 
GeneralRe: Keeping UDS_ALIGNRIGHT positioning for an updown control after moving the buddy window Pin
Richard MacCutchan10-Feb-20 21:59
mveRichard MacCutchan10-Feb-20 21:59 
RantHow do people even do LL(k) parsing? Pin
honey the codewitch9-Feb-20 7:24
mvahoney the codewitch9-Feb-20 7:24 
GeneralRe: How do people even do LL(k) parsing? Pin
Gerry Schmitz9-Feb-20 9:02
mveGerry Schmitz9-Feb-20 9:02 
GeneralRe: How do people even do LL(k) parsing? Pin
honey the codewitch9-Feb-20 9:50
mvahoney the codewitch9-Feb-20 9:50 
GeneralRe: How do people even do LL(k) parsing? Pin
Gerry Schmitz9-Feb-20 10:23
mveGerry Schmitz9-Feb-20 10:23 
GeneralRe: How do people even do LL(k) parsing? Pin
CPallini9-Feb-20 21:22
mveCPallini9-Feb-20 21:22 
QuestionNon-latin characters are shown correctly in Debug mode but not in Release Pin
sdancer754-Feb-20 3:34
sdancer754-Feb-20 3:34 
GeneralRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
Richard MacCutchan4-Feb-20 6:07
mveRichard MacCutchan4-Feb-20 6:07 
GeneralRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
sdancer754-Feb-20 6:24
sdancer754-Feb-20 6:24 
GeneralRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
Richard MacCutchan4-Feb-20 6:52
mveRichard MacCutchan4-Feb-20 6:52 
GeneralRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
sdancer754-Feb-20 20:48
sdancer754-Feb-20 20:48 
AnswerRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
Stefan_Lang5-Feb-20 21:41
Stefan_Lang5-Feb-20 21:41 
GeneralRe: Non-latin characters are shown correctly in Debug mode but not in Release Pin
sdancer755-Feb-20 23:12
sdancer755-Feb-20 23:12 
QuestionRegular expression confusion (std::regex_replace). Pin
Maximilien31-Jan-20 9:27
Maximilien31-Jan-20 9:27 
AnswerRe: Regular expression confusion (std::regex_replace). Pin
k505431-Jan-20 10:17
mvek505431-Jan-20 10:17 
GeneralRe: Regular expression confusion (std::regex_replace). Pin
Maximilien31-Jan-20 12:21
Maximilien31-Jan-20 12:21 
GeneralRe: Regular expression confusion (std::regex_replace). Pin
Maximilien3-Feb-20 13:14
Maximilien3-Feb-20 13:14 
GeneralRe: Regular expression confusion (std::regex_replace). Pin
k50544-Feb-20 3:35
mvek50544-Feb-20 3:35 
AnswerRe: Regular expression confusion (std::regex_replace). Pin
Joe Woodbury31-Jan-20 11:58
professionalJoe Woodbury31-Jan-20 11:58 
GeneralRe: Regular expression confusion (std::regex_replace). Pin
Maximilien31-Jan-20 12:21
Maximilien31-Jan-20 12:21 
Questiongcov linker errors Pin
Vaclav_30-Jan-20 9:05
Vaclav_30-Jan-20 9:05 
I have now build both project and its library using ARM architecture.
The library compiles and links - no error.
The library contains one test C++ class with only constructor / destructor implemented.
This is important to note - see the NOTEs at the end of the post.

The main program compiles but fails to link with errors indicating problem with "gcov".

The attached partial crosscompiler make output of library build indicates addition of "gcov" related options.
They have been put there as standard IDE options for building library.
I did NOT added these options.

make -j4 all 
Building file: ../MODULE/M_ARM_TEST/CARMTEST.cpp
Invoking: Cross G++ Compiler
arm-linux-gnueabihf-g++ -O0 -g3 -p -pg -ftest-coverage -fprofile-arcs -Wall -c -fmessage-length=0 -v -MMD -MP -MF"MODULE/M_ARM_TEST/CARMTEST.d" -MT"MODULE/M_ARM_TEST/CARMTEST.o" -o "MODULE/M_ARM_TEST/CARMTEST.o" "../MODULE/M_ARM_TEST/CARMTEST.cpp"
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-g++



The attached partial output of main program posts the "gcov" errors.

lRPI_BT_LIB_ARM -lbluetooth
/media/z/DEV_COPY_LABEL/ECLIPSE_FOLDER/2019-12/Eclipse_2019_12/eclipse/Workspace_2019_12/RPI_BT_LIB_ARM/Debug/libRPI_BT_LIB_ARM.a(CARMTEST.o): In function `_GLOBAL__sub_I_65535_0__ZNSt10C_ARM_TESTC2Ev':
/media/z/DEV_COPY_LABEL/ECLIPSE_FOLDER/2019-12/Eclipse_2019_12/eclipse/Workspace_2019_12/RPI_BT_LIB_ARM/Debug/../MODULE/M_ARM_TEST/CARMTEST.cpp:42: undefined reference to `__gcov_init'
/media/z/DEV_COPY_LABEL/ECLIPSE_FOLDER/2019-12/Eclipse_2019_12/eclipse/Workspace_2019_12/RPI_BT_LIB_ARM/Debug/libRPI_BT_LIB_ARM.a(CARMTEST.o):(.data+0x28): undefined reference to `__gcov_merge_add'
collect2: error: ld returned 1 exit status


NOTE The library source code line #42 is where error is actually indicated in output , at the closing bracket of "std" namespace comment

NOTE 42 } /* namespace std */

1. What is the purpose of having -ftest-coverage -fprofile-arcs option SPECIFICALLY for library? I do not have them in any other IDE build programs.
I did not try to delete them, perhaps after I have some more knowledge about their purpose.
2. I did try to add -lgcov to program linker but it did not work.
I understand that gcov is some kind of utility tracking application and not sure why I need it.

Any help woudl be appreciated.
Cheers

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.