visibility warning
Indy Sams
indy at driftsolutions.com
Sat Mar 8 10:21:12 EST 2008
Hello Dennis,
Maybe because you are building static??? I've never tried
setting visibility flags on anything but shared objects (.so).
Saturday, March 8, 2008, 7:49:31 AM, you wrote:
DS> Hi!
DS> I run CMake like this:
DS> cmake -DWIN32=true -DCMAKE_VERBOSE_MAKEFILE=on \
DS> -DCMAKE_CXX_COMPILER=/usr/bin/mingw32-g++
DS> -DCMAKE_C_COMPILER=/usr/bin/mingw32-gcc
DS> -DCMAKE_AR=/usr/bin/mingw32-ar
DS> -DCMAKE_RANLIB=/usr/bin/mingw32-ranlib
DS> \
DS> -DCMAKE_BUILD_TYPE=Release -DPHYSFS_BUILD_SHARED=off -DPHYSFS_BUILD_STATIC=on
DS> \
DS> -DPHYSFS_INTERNAL_ZLIB=off -DPHYSFS_BUILD_TEST=off -DPHYSFS_BUILD_WX_TEST=off
DS> \
DS> -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}" \
DS> -DCMAKE_C_FLAGS:STRING="${CPPFLAGS}
DS> ${CFLAGS}" -DCMAKE_CXX_FLAGS:STRING="${CPPFLAGS}
DS> ${CXXFLAGS}" -DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}"
DS> With these variables:
DS> PREFIX="/home/devpkg/devpkg"
DS> CFLAGS="-pipe -m32 -march=i686 -O2"
DS> CXXFLAGS="${CFLAGS}"
DS> CPPFLAGS="-I${PREFIX}/include"
DS> LDFLAGS="-L${PREFIX}/lib"
DS> And get this warning/error:
DS> /usr/bin/mingw32-gcc -I/home/devpkg/devpkg/include -O3 -DNDEBUG
DS> -I/home/devpkg/src/physfs-svn/.
DS> -I/home/devpkg/src/physfs-svn/zlib123 -g -pipe -Werror
DS> -fsigned-char -Wall -fvisibility=hidden
DS> -DPHYSFS_NO_PTHREADS_SUPPORT=1 -D_REENTRANT -D_THREAD_SAFE
DS> -DHAVE_ASSERT_H=1 -DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1
DS> -DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_WAD=1
DS> -DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1
DS> -DPHYSFS_SUPPORTS_QPAK=1 -DZ_PREFIX=1 -o
DS> CMakeFiles/physfs-static.dir/physfs.o -c
DS> /home/devpkg/src/physfs-svn/physfs.c
DS> cc1: warnings being treated as errors
DS> /home/devpkg/src/physfs-svn/physfs.c: In function ‘__PHYSFS_sort’:
DS> /home/devpkg/src/physfs-svn/physfs.c:264: warning: visibility attribute not
DS> supported in this configuration; ignored
DS> This is with svn/trunk r930.
DS> I've got no idea what it means with "this configuration"...
DS> --Dennis
Best regards,
Indy Sams
mailto:indy at driftsolutions.com
P.S. This is what part of the alphabet would look like if Q & R were eliminated.
More information about the physfs
mailing list