P
P
Pavel Kizernis2015-10-08 14:56:13
C++ / C#
Pavel Kizernis, 2015-10-08 14:56:13

C++ compilation error [util.h:134:51: error: 'va_list' was not declared] (Windows, Cygwin). What's wrong?

$ make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/Vincent/Projects/TestCoin/src -I/home/Vincent/Projects/TestCoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
In file included from bignum.h:13:0,
                 from main.h:9,
                 from checkpoints.cpp:11:
util.h:134:51: ошибка: «va_list» не был декларирован
 std::string vstrprintf(const std::string &format, va_list ap);
                                                   ^
makefile.unix:138: ошибка выполнения рецепта для цели «obj/checkpoints.o»
make: *** [obj/checkpoints.o] Ошибка 1

Is something missing in Cygwin?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-10-08
@Taraflex

<cstdarg>
Connected?

E
Eugene, 2015-10-08
@jk_action

The compiler doesn't know what type va_list is, either include a header where it's declared, or make a forward declaration of class va_list; if it is not a typedef and anyway you will have to do the inclusion in the cpp file
In general, how to assemble it for wine is written in the dock
https://github.com/PuffCoin/template/blob/master/I...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question