gpt4 book ai didi

c++ - pthread_cond_signal() 未在范围内声明

转载 作者:行者123 更新时间:2023-11-28 00:52:10 26 4
gpt4 key购买 nike

<分区>

我正在尝试使用 thread_cond_signal () 编译程序

我的导入是

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <stdio.h>
#include <queue>
#include <pthread.h>
#include <sys/timeb.h>
#include <map>
#include <fstream>
#include <algorithm>
#include <math.h>


#include <unistd.h>
#include <syslog.h>

#include "parser.h"
#include "safe_queue.h"
#include "priqueue.h"
#include "base64.h"
#include "xmlhelper.h"
#include "utils.h"
#include "messagehelper.h"
#include "default_config.h"
#include "main_process_helper.h"
#include "ExcludesParameters.h"
#include "eErrors.h"
#include "s_Error.h"
#include "eMessage_Type.h"
#include "hmaps.h"
#include "cookiestatus.h"
#include "sha1.h"
#include "ExcludeFields.h"
#include "pthreadStruct.h"

我的编译批处理脚本是

g++ -g -lpthread utils/hregex.cpp ExcludeFields.cpp utils/sha1.cpp utils/utils.cpp utils/base64.cpp utils/xmlhelper.cpp utils/messagehelper.cpp utils/safe_queue.cpp utils/parser.cpp utils/default_config.cpp ExcludesParameters.cpp main_process_helper.cpp main.cpp -Iutils -Ibusiness_objects -o telepath_sniff

输出:

‘thread_cond_signal’ was not declared in this scope

代码是:

thread_cond_signal( &cond_garbageQueue);

知道我还应该添加什么吗?它确实在 Eclipse 上编译

谢谢

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com