我正在处理VES的副本。我一直在处理这个问题,经过反复试验,我已经提出了一个“解决方案”。我不明白为什么它有效,因为我仍然是c++
的新手,所以我希望有人可以对我有所了解。这是怎么回事?
strequal.h:33:8: error:
expected parameter declarator
size_t strlcat(char *dst, const char *src, size_t siz);
strequal.h:33:8: error: expected ')'
strequal.h:33:8: error: conflicting types for '__builtin___strlcat_chk'
formdata.c:39
#include "strequal.h"
strequal.h
#ifndef __STREQUAL_H
#define __STREQUAL_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
#include <curl/curl.h>
#define strequal(a,b) curl_strequal(a,b)
#define strnequal(a,b,c) curl_strnequal(a,b,c)
#ifndef HAVE_STRLCAT
#define strlcat(x,y,z) Curl_strlcat(x,y,z)
#endif
size_t strlcat(char *dst, const char *src, size_t siz);
#endif
参数声明看起来都很好并且搜索网络/调查相关文件我无法理解发生的事情因此经过几个小时的研究我只是试着评论 strequal.h:33
// strequal.h:33:8: error: conflicting types for '__builtin___strlcat_chk'
100%构建