visibility warning
Dennis Schridde
devurandom at gmx.net
Sat Mar 8 07:49:31 EST 2008
Hi!
I run CMake like this:
cmake -DWIN32=true -DCMAKE_VERBOSE_MAKEFILE=on \
-DCMAKE_CXX_COMPILER=/usr/bin/mingw32-g++ -DCMAKE_C_COMPILER=/usr/bin/mingw32-gcc -DCMAKE_AR=/usr/bin/mingw32-ar -DCMAKE_RANLIB=/usr/bin/mingw32-ranlib
\
-DCMAKE_BUILD_TYPE=Release -DPHYSFS_BUILD_SHARED=off -DPHYSFS_BUILD_STATIC=on
\
-DPHYSFS_INTERNAL_ZLIB=off -DPHYSFS_BUILD_TEST=off -DPHYSFS_BUILD_WX_TEST=off
\
-DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}" \
-DCMAKE_C_FLAGS:STRING="${CPPFLAGS}
${CFLAGS}" -DCMAKE_CXX_FLAGS:STRING="${CPPFLAGS}
${CXXFLAGS}" -DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}"
With these variables:
PREFIX="/home/devpkg/devpkg"
CFLAGS="-pipe -m32 -march=i686 -O2"
CXXFLAGS="${CFLAGS}"
CPPFLAGS="-I${PREFIX}/include"
LDFLAGS="-L${PREFIX}/lib"
And get this warning/error:
/usr/bin/mingw32-gcc -I/home/devpkg/devpkg/include -O3 -DNDEBUG -I/home/devpkg/src/physfs-svn/. -I/home/devpkg/src/physfs-svn/zlib123 -g -pipe -Werror -fsigned-char -Wall -fvisibility=hidden -DPHYSFS_NO_PTHREADS_SUPPORT=1 -D_REENTRANT -D_THREAD_SAFE -DHAVE_ASSERT_H=1 -DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1 -DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_WAD=1 -DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1 -DPHYSFS_SUPPORTS_QPAK=1 -DZ_PREFIX=1 -o
CMakeFiles/physfs-static.dir/physfs.o -c /home/devpkg/src/physfs-svn/physfs.c
cc1: warnings being treated as errors
/home/devpkg/src/physfs-svn/physfs.c: In function ‘__PHYSFS_sort’:
/home/devpkg/src/physfs-svn/physfs.c:264: warning: visibility attribute not
supported in this configuration; ignored
This is with svn/trunk r930.
I've got no idea what it means with "this configuration"...
--Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://icculus.org/pipermail/physfs/attachments/20080308/d9ae31cf/attachment.pgp>
More information about the physfs
mailing list