[CMake] WINDOWS_EXPORT_ALL_SYMBOLS

Micha Renner Micha.Renner at t-online.de
Tue Jan 26 05:12:11 EST 2016


Hallo all,

SET_TARGET_PROPERTIES(TLib PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
generates this exportall.def file

	EXPORTS 
	testCall1_1
	__local_stdio_printf_options
	_vfprintf_l
	vprintf
	printf
	_vsnprintf_l
	vsprintf

my library is this:

#include "tlib.h"
#include <stdio.h>
May be there exists an explanation.
#include <Windows.h>

void testCall1_1(const char*  fmt, ...)
{
	char buffer[10];
		 
	int c = 5;
	va_list      ap;

	printf("... in testCall-1-1\n"); 

	va_start(ap, fmt);
	vprintf(fmt, ap);
	vsprintf(buffer, fmt, ap);
	va_end(ap);

}

>From what comes:
__local_stdio_printf_options
_vfprintf_l
_vsnprintf_l

It prevents that I can link the library to a program since there is no
__local_stdio_printf_options etc.

May be there exists an explanation.

Greetings

Michael


cmake 3.4.2 Windows 10 VS Express 15
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BuildDll.zip
Type: application/zip
Size: 12394 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160126/ae9a5a2e/attachment.zip>


More information about the CMake mailing list