Hi everyone,
I would like to send and receive UDP (or TCP) packets with a C++ application. Since I have not found any other documentation for the networking API, I am copy-pasting parts of the HTTP server example to my C++ code.
The first problem I am running into is that the linker cannot find ipcfg_init_device. Since this symbol is defined in ipcfg.h, which is part of RTCS, I added rtcs.a in the C/C++ Build Settings->Tool Settings->ARM Ltd Windows GCC C++ Linker->Miscellaneous->Other objects. However, this did not help.
My questions are
Kind regards
Michael
解決済! 解決策の投稿を見る。
For the linking RTCS from a C++ source code, make sure you put RTCS include files into extern "C" brackets. Example:
extern "C" {
#include "ipcfg.h"
....
...
}
For the linking RTCS from a C++ source code, make sure you put RTCS include files into extern "C" brackets. Example:
extern "C" {
#include "ipcfg.h"
....
...
}
Thanks! This does the trick.