I want to build MySQL 8.0.30 but it fails with the following error:
[3199/3567] Linking CXX executable
runtime_output_directory\mysqlrouter_plugin_info.exe FAILED:
runtime_output_directory/mysqlrouter_plugin_info.exe cmd.exe /C "cd .
&& "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe
--intdir=router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir
--rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\ENTERP~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe
/nologo
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\library_file.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\main.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\plugin_info_app.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\plugin.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir____\versioninfo_exe.rc.res
/out:runtime_output_directory\mysqlrouter_plugin_info.exe
/implib:router\src\plugin_info\src\mysqlrouter_plugin_info.lib
/pdb:runtime_output_directory\mysqlrouter_plugin_info.pdb /version:0.0
/machine:x64 /debug /INCREMENTAL /INCREMENTAL:NO /subsystem:console
ws2_32.lib router\src\harness\src\harness-library.lib
archive_output_directory\mysys.lib
archive_output_directory\strings.lib
archive_output_directory\mysys.lib
archive_output_directory\strings.lib
archive_output_directory\mytime.lib archive_output_directory\zlib.lib
archive_output_directory\zstd.lib crypt32.lib shlwapi.lib
ws2_32.lib
C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libsslMTd.lib
C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libcryptoMTd.lib
crypt32.lib kernel32.lib user32.lib gdi32.lib winspool.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
&& cd ." LINK Pass 1: command
"C:\PROGRA~1\MICROS~4\2022\ENTERP~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe
/nologo
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\library_file.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\main.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\plugin_info_app.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir\plugin.cc.obj
router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir____\versioninfo_exe.rc.res
/out:runtime_output_directory\mysqlrouter_plugin_info.exe
/implib:router\src\plugin_info\src\mysqlrouter_plugin_info.lib
/pdb:runtime_output_directory\mysqlrouter_plugin_info.pdb /version:0.0
/machine:x64 /debug /INCREMENTAL /INCREMENTAL:NO /subsystem:console
ws2_32.lib router\src\harness\src\harness-library.lib
archive_output_directory\mysys.lib
archive_output_directory\strings.lib
archive_output_directory\mysys.lib
archive_output_directory\strings.lib
archive_output_directory\mytime.lib archive_output_directory\zlib.lib
archive_output_directory\zstd.lib crypt32.lib shlwapi.lib ws2_32.lib
C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libsslMTd.lib
C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libcryptoMTd.lib
crypt32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTFILE:router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir/intermediate.manifest router\src\plugin_info\src\CMakeFiles\mysqlrouter_plugin_info.dir/manifest.res"
failed (exit code 1169) with the following output:
harness-library.lib(harness-library.dll) : error LNK2005: "public: int
__cdecl std::basic_streambuf<char,struct std::char_traits >::pubsync(void)" (?pubsync#?$basic_streambuf#DU?$char_traits#D#std###std##QEAAHXZ)
already defined in plugin_info_app.cc.obj
harness-library.lib(harness-library.dll) : error LNK2005: "public: int
__cdecl std::basic_streambuf<char,struct std::char_traits >::sputc(char)" (?sputc#?$basic_streambuf#DU?$char_traits#D#std###std##QEAAHD#Z)
already defined in plugin_info_app.cc.obj
harness-library.lib(harness-library.dll) : error LNK2005: "public:
__int64 __cdecl std::basic_streambuf<char,struct std::char_traits >::sputn(char const *,__int64)"
(?sputn#?$basic_streambuf#DU?$char_traits#D#std###std##QEAA_JPEBD_J#Z)
already defined in plugin_info_app.cc.obj
runtime_output_directory\mysqlrouter_plugin_info.exe : fatal error
LNK1169: one or more multiply defined symbols found [3208/3567]
Linking CXX executable runtime_output_directory\mysqld.exe ninja:
build stopped: subcommand failed.
C:\mysql-8.0.30\build>
I use this command to build MySQL:
cmake -H. -B"C:\\mysql-8.0.30\\build" -DWITH_UNIT_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="C:\\MySQL\\mysql-8.0.30-winx64\\debug" -DLINK_STATIC_RUNTIME_LIBRARIES=1 -DFORCE_INSOURCE_BUILD=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST="C:\\Boost" -DWITH_SSL="C:\OpenSSL\openssl-1.1.1q\static\x64\debug" -DOPENSSL_LIBRARY="C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libsslMTd.lib" -DCRYPTO_LIBRARY="C:\OpenSSL\openssl-1.1.1q\static\x64\debug\lib\libcryptoMTd.lib" -G "Ninja"
Any ideas how to fix this issue? Thank you for your help.
I have fixed this issue by adding the following option: -DWITH_ROUTER=OFF to my command. Now, it compiles without issues. The issue is resolved.
Related
I am cross-compiling samba v4.17.3, i met some questions.
I write auto_config.sh,
root#gyz-thinkcentre-e73:~/third_source/samba-4.17.3# cat auto_config.sh
qemu_binary="qemu-aarch64"
libdir_qemu="/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/"
base_libdir_qemu="/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/"
prefix_path="/root/result/samba"
CROSS_EXEC= "${qemu_binary} -L /root/niic/SDK/sysroots -E LD_LIBRARY_PATH=${libdir_qemu}:${base_libdir_qemu}"
./configure --prefix=${prefix_path} --target=aarch64-niic-linux --host=aarch64-niic-linux samba_cv_CC_NEGATIVE_ENUM_VALUES=yes --cross-exec="${CROSS_EXEC}"
when i run auto_config.sh, a error occured: No such file or directory, but the two path '/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/' and '/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/' are exist.
root#gyz-thinkcentre-e73:~/third_source/samba-4.17.3# ./auto_config.sh
./auto_config.sh: line 7: qemu-aarch64 -L /root/niic/SDK/sysroots -E LD_LIBRARY_PATH=/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/:/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/: No such file or directory
Setting top to : /root/third_source/samba-4.17.3
Setting out to : /root/third_source/samba-4.17.3/bin
Checking for 'gcc' (C compiler) : aarch64-niic-linux-gcc -mcpu=cortex-a55 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/root/niic/SDK/sysroots/aarch64-niic-linux
Checking for program 'git' : /usr/bin/git
Checking for c flags '-MMD' : yes
Checking for program 'gdb' : aarch64-niic-linux-gdb
Checking for header sys/utsname.h : yes
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
Checking for header stdio.h : yes
Checking simple C program : not found
The configuration failed False
(complete log in /root/third_source/samba-4.17.3/bin/config.log)
Trying to launch my work project, but when I do bundle I get this error
Fetching mysql2 0.3.16
Installing mysql2 0.3.16 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/alexandra_shimanovich/.bundle/ruby/2.5.0/gems/mysql2-0.3.16/ext/mysql2
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/bin/ruby -I /Users/alexandra_shimanovich/.rbenv/versions/2.5.5/lib/ruby/site_ruby/2.5.0 -r ./siteconf20220608-34831-zm49z7.rb extconf.rb
--with-mysql-lib\=/opt/homebrew/opt/mysql/lib\ --with-mysql-dir\=/opt/homebrew/opt/mysql\ --with-mysql-config\=/opt/homebrew/opt/mysql/bin/mysql_config\
--with-mysql-include\=/opt/homebrew/opt/mysql/include\ --with-ldflags\=-L/opt/homebrew/opt/openssl#3/lib\ --with-cppflags\=-I/opt/homebrew/opt/openssl#3/include
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... no
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for rb_hash_dup()... no
checking for rb_intern3()... no
-----
Using mysql_config at /opt/homebrew/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting rpath to /opt/homebrew/Cellar/mysql/8.0.29/lib
-----
creating Makefile
current directory: /Users/alexandra_shimanovich/.bundle/ruby/2.5.0/gems/mysql2-0.3.16/ext/mysql2
make DESTDIR\= clean
current directory: /Users/alexandra_shimanovich/.bundle/ruby/2.5.0/gems/mysql2-0.3.16/ext/mysql2
make DESTDIR\=
compiling client.c
In file included from client.c:1:
In file included from ./mysql2_ext.h:41:
In file included from ./client.h:18:
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/backward/rubysig.h:14:2: warning: rubysig.h is obsolete [-W#warnings]
#warning rubysig.h is obsolete
^
In file included from client.c:1:
In file included from ./mysql2_ext.h:41:
./client.h:22:1: error: static declaration of 'rb_thread_call_without_gvl' follows non-static declaration
rb_thread_call_without_gvl(
^
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/thread.h:28:7: note: previous declaration is here
void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
^
In file included from client.c:1:
In file included from ./mysql2_ext.h:41:
./client.h:29:3: error: use of undeclared identifier 'TRAP_BEG'
TRAP_BEG;
^
./client.h:31:3: error: use of undeclared identifier 'TRAP_END'
TRAP_END;
^
In file included from client.c:11:
./wait_for_single_fd.h:31:10: warning: implicit declaration of function 'rb_thread_select' is invalid in C99 [-Wimplicit-function-declaration]
return rb_thread_select(fd + 1, rfds, wfds, efds, tvp);
^
client.c:21:14: error: static declaration of 'rb_hash_dup' follows non-static declaration
static VALUE rb_hash_dup(VALUE other) {
^
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/intern.h:494:7: note: previous declaration is here
VALUE rb_hash_dup(VALUE);
^
client.c:22:31: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
return rb_funcall(rb_cHash, rb_intern("[]"), 1, other);
^~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1755:23: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^
client.c:22:31: note: '{' token is here
return rb_funcall(rb_cHash, rb_intern("[]"), 1, other);
^~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1755:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1740:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
{ \
^
client.c:22:31: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
return rb_funcall(rb_cHash, rb_intern("[]"), 1, other);
^~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1755:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1745:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
}
^
client.c:22:31: note: ')' token is here
return rb_funcall(rb_cHash, rb_intern("[]"), 1, other);
^~~~~~~~~~~~~~~
....................
client.c:1396:31: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
rb_const_set(cMysql2Client, rb_intern("BASIC_FLAGS"),
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1755:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1745:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
}
^
client.c:1396:31: note: ')' token is here
rb_const_set(cMysql2Client, rb_intern("BASIC_FLAGS"),
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/alexandra_shimanovich/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/ruby.h:1755:56: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^
70 warnings and 14 errors generated.
make: *** [client.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/alexandra_shimanovich/.bundle/ruby/2.5.0/gems/mysql2-0.3.16 for inspection.
Results logged to /Users/alexandra_shimanovich/.bundle/ruby/2.5.0/extensions/-darwin-21/2.5.0/mysql2-0.3.16/gem_make.out
An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.16' --source 'http://rubygems.org/'` succeeds before bundling.
macOS Monterey 12.2.1 Apple M1
ruby 2.5.5
I did all existing suggestions on the Internet, but still no luck, maybe here somebody can help me.
Thank you!
This error keeps on coming during docker build.
Tried various code techniques.
ERROR: Process exited with status 128: Process exited with status 128
++ git describe --long --tags
+ tf_git_rev=v1.14.0-14-g1aad02a78e
+ echo 'STABLE_TF_GIT_VERSION v1.14.0-14-g1aad02a78e'
+ pushd native_client
++ git describe --long --tags
fatal: No names found, cannot describe anything.
+ ds_git_rev=
STABLE_TF_GIT_VERSION v1.14.0-14-g1aad02a78e
/tensorflow/native_client /tensorflow
INFO: Elapsed time: 150.094s, Critical Path: 6.47s
INFO: 1 process: 1 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
The command '/bin/sh -c bazel build --workspace_status_command="bash native_client/bazel_workspace_status_cmd.sh" --config=monolithic --config=cuda -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-mtune=generic --copt=-march=x86-64 --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx --copt=-fvisibility=hidden //native_client:libdeepspeech.so //native_client:generate_trie --verbose_failures --action_env=LD_LIBRARY_PATH=${LD_LIBRARY_PATH}' returned a non-zero code: 1
Build should be successful.
I'm building a Vala program with gnome-builder and flatpak. I wan't to connect to a mySQL Database. Thats why I need to run mysql_config to get the right compiler flags.
So I added mysql_config = find_program('mysql_config')to my meson.build file.
When I try to compile I get meson.build:7:0: ERROR: Program(s) ['mysql_config'] not found or not executable.
When I run whereis mysql_config on command line I get the expected result mysql_config: /usr/bin/mysql_config. Also I can run mysql_config --cflags from command line with the expected result -I/usr/include/mysql -I/usr/include/mysql.
Thats why I think that the problem is that I'm building with flatpak-builder.
My ./meson.build:
project('zeiterfassunggtk', ['c', 'vala'], version: '0.1.0',
meson_version: '>= 0.40.0',
)
i18n = import('i18n')
mysql_config = find_program('mysql_config')
mysql_vapi = meson.get_compiler('vala').find_library('mysql')
mysql_dep = declare_dependency(c_args: run_command([mysql_config, '--cflags']).stdout().split(),
link_args: run_command([mysql_config, '--libs']).stdout().split(),
dependencies: [mysql_vapi])
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')
My ./src/meson.build
zeiterfassunggtk_sources = [
'main.vala',
'window.vala',
'mysql.vala',
]
zeiterfassunggtk_deps = [
dependency('gio-2.0', version: '>= 2.50'),
dependency('gtk+-3.0', version: '>= 3.22'),
]
gnome = import('gnome')
zeiterfassunggtk_sources += gnome.compile_resources('zeiterfassunggtk-resources',
'zeiterfassunggtk.gresource.xml',
c_name: 'zeiterfassunggtk'
)
executable('zeiterfassunggtk', zeiterfassunggtk_sources,
vala_args: '--target-glib=2.50', dependencies: zeiterfassunggtk_deps,
install: true,
)
The full output of the build process:
flatpak build --env=LANG=de_AT.UTF-8 --env=USER=g.zehetner --env=HOME=/home/g.zehetner --env=PATH=/usr/bin:/bin --env=TERM=xterm-256color --env=V=0 --env=CCACHE_DIR=/home/g.zehetner/.cache/gnome-builder/flatpak-builder/ccache --env=PATH=/app/bin:/usr/bin --build-dir=/home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --share=network --nofilesystem=host --filesystem=/home/g.zehetner/.cache/gnome-builder --filesystem=/home/g.zehetner/Projekte/ZeiterfassungGtk --filesystem=/home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --env=V=1 '--env=CFLAGS=-O2 -g' '--env=CXXFLAGS=-O2 -g' --env=NOCONFIGURE=1 /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/flatpak/staging/x86_64-master ninja
[0/1] Regenerating build files.
The Meson build system
Version: 0.46.0
Source dir: /home/g.zehetner/Projekte/ZeiterfassungGtk
Build dir: /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master
Build type: native build
Project name: zeiterfassunggtk
Native C compiler: ccache cc (gcc 6.2.0 "cc (GCC) 6.2.0")
Appending CFLAGS from environment: '-O2 -g'
Appending LDFLAGS from environment: '-L/app/lib '
Native Vala compiler: valac (valac 0.38.2)
Appending LDFLAGS from environment: '-L/app/lib '
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program mysql_config found: NO
meson.build:7:0: ERROR: Program(s) ['mysql_config'] not found or not executable
A full log can be found at /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master/meson-logs/meson-log.txt
FAILED: build.ninja
/usr/bin/python3 /usr/bin/meson --internal regenerate /home/g.zehetner/Projekte/ZeiterfassungGtk /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed
You can find the full code at Github.com
I am trying to compile MySQL++ 3.1.0 with the command:
mingw32-make -f Makefile.mingw
After a set of files gets compiled (e.g. beemutex.cpp, cmdline.cpp, connection.cpp, ...), I get these errors:
g++ -c -o mysqlpp_sql_buffer.o -g -mthreads -DUNICODE -D_UNICODE -DMYSQLPP_NO_DLL -DHAVE_MYSQL_SSL_SET -I"C:\Program Files\MySQL\MySQL Server 5.5\include" -MT
mysqlpp_sql_buffer.o -MFmysqlpp_sql_buffer.o.d -MD -MP lib/sql_buffer.cpp
In file included from lib/sql_buffer.h:31:0,
from lib/sql_buffer.cpp:26:
lib/refcounted.h:258:2: error: 'size_t' does not name a type
lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T, Destroyer>::RefCountedPointer()':
lib/refcounted.h:89:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>' does not have any field named 'refs_'
lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T, Destroyer>::RefCountedPointer(T*)':
lib/refcounted.h:100:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>' does not have any field named 'refs_'
lib/refcounted.h:104:4: error: 'refs_' was not declared in this scope
lib/refcounted.h:104:16: error: expected type-specifier before 'size_t'
lib/refcounted.h:104:16: error: expected ';' before 'size_t'
lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T, Destroyer>::RefCountedPointer(const ThisType&)':
lib/refcounted.h:112:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>' does not have any field named 'refs_'
lib/refcounted.h:115:8: error: 'refs_' was not declared in this scope
lib/refcounted.h: In destructor 'mysqlpp::RefCountedPointer<T, Destroyer>::~RefCountedPointer()':
lib/refcounted.h:125:7: error: 'refs_' was not declared in this scope
lib/refcounted.h: In member function 'void mysqlpp::RefCountedPointer<T, Destroyer>::swap(mysqlpp::RefCountedPointer<T, Destroyer>::ThisType&)':
lib/refcounted.h:246:13: error: 'refs_' was not declared in this scope
mingw32-make: *** [mysqlpp_sql_buffer.o] Error 1
Something could be wrong in my configuration, but I can't find what. It seems strange that it cannot find, e.g., size_t.
Thank you!
Platform:
Windows 7
MinGW 2011.09 / GCC 4.6.1
MySQL 5.5
mysql++ 3.1.0
Changing size_t() with std::size_t() in refcounted.h solved the problem. It now compiles.
I still have linking problems, but they should be different issues.