I've never investigated using openocd as library
The file main.c should be skipped; the entry point of the library libopenocd.a
should be openocd_main(), that includes the call to server_host_os_entry().
If you decide to not call openocd_main() and to call lowest level functions,
you should take care of the dependencies.
Do I miss something?
The call to server_host_os_entry() has been moved in
http://openocd.zylin.com/5456 as part of the effort for stlink tcp server.
---
** [tickets:#329] ST-Link TCP server backend code windows**
**Status:** new
**Milestone:** 0.11.0
**Created:** Mon Dec 27, 2021 06:35 PM UTC by Pawel
**Last Updated:** Mon Dec 27, 2021 07:01 PM UTC
**Owner:** Antonio Borneo
Winsock is missing initialization.
~~~
#ifdef _WIN32
// Initialize Winsock
WSADATA wsaData;
int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult != 0)
{
LOG_ERROR("Error initializing socket (WSAStartup failed: %d)",
iResult);
return ERROR_FAIL;
}
#endif
~~~
Regards,
Pawel
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.