V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hhhhhh123  ›  全部回复第 12 页 / 共 15 页
回复总数  284
1 ... 4  5  6  7  8  9  10  11  12  13 ... 15  
2022-07-28 15:51:57 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 在上面写了
#ifndef _GLIBCXX_BITS_UNIFORM_INT_DIST_H
#define _GLIBCXX_BITS_UNIFORM_INT_DIST_H

#include <type_traits>
#include <ext/numeric_traits.h>
#if __cplusplus > 201703L
# include <concepts>
#endif
#include <bits/concept_check.h> // __glibcxx_function_requires
#include <functional>


但是错误好像还是这个
2022-07-28 15:48:21 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 我不是 c++开发,是 python 开发
2022-07-28 13:54:12 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 这是修改后的
__uctype __urngmin = _UniformRandomBitGenerator::min();
__uctype __urngmax = _UniformRandomBitGenerator::max();
assert( __urngmin < __urngmax);

报错信息变多了....

g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -c -o omp/EquityCalculator.o omp/EquityCalculator.cpp
In file included from omp/EquityCalculator.cpp:1:
omp/EquityCalculator.h:76:21: error: ‘std::function’ has not been declared
76 | std::function<void(const Results&)> callback = nullptr,
| ^~~~~~~~
omp/EquityCalculator.h:76:29: error: expected ‘,’ or ‘...’ before ‘<’ token
76 | std::function<void(const Results&)> callback = nullptr,
| ^
omp/EquityCalculator.h:202:10: error: ‘function’ in namespace ‘std’ does not name a template type
202 | std::function<void(const Results& results)> mCallback;
| ^~~~~~~~
omp/EquityCalculator.h:15:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
14 | #include <unordered_map>
+++ |+#include <functional>
15 | #include <array>
omp/EquityCalculator.h:76:16: error: default argument missing for parameter 6 of ‘bool omp::EquityCalculator::start(const std::vector<omp::CardRange>&, uint64_t, uint64_t, bool, double, int)’
76 | std::function<void(const Results&)> callback = nullptr,
| ^~~~~~~~~~~~~
omp/EquityCalculator.h:74:67: note: ...following parameter 2 which has a default argument
74 | bool start(const std::vector<CardRange>& handRanges, uint64_t boardCards = 0, uint64_t deadCards = 0,
| ~~~~~~~~~^~~~~~~~~~~~~~
omp/EquityCalculator.cpp:14:74: error: ‘std::function’ has not been declared
14 | bool enumerateAll, double stdevTarget, std::function<void(const Results&)> callback,
| ^~~~~~~~
omp/EquityCalculator.cpp:14:82: error: expected ‘,’ or ‘...’ before ‘<’ token
14 | bool enumerateAll, double stdevTarget, std::function<void(const Results&)> callback,
| ^
omp/EquityCalculator.cpp: In member function ‘bool omp::EquityCalculator::start(const std::vector<omp::CardRange>&, uint64_t, uint64_t, bool, double, int)’:
omp/EquityCalculator.cpp:47:5: error: ‘mCallback’ was not declared in this scope
47 | mCallback = callback;
| ^~~~~~~~~
omp/EquityCalculator.cpp:47:17: error: ‘callback’ was not declared in this scope; did you mean ‘calloc’?
47 | mCallback = callback;
| ^~~~~~~~
| calloc
omp/EquityCalculator.cpp:48:23: error: ‘updateInterval’ was not declared in this scope; did you mean ‘mUpdateInterval’?
48 | mUpdateInterval = updateInterval;
| ^~~~~~~~~~~~~~
| mUpdateInterval
omp/EquityCalculator.cpp:51:9: error: ‘threadCount’ was not declared in this scope
51 | if (threadCount == 0)
| ^~~~~~~~~~~
omp/EquityCalculator.cpp:53:26: error: ‘threadCount’ was not declared in this scope
53 | mUnfinishedThreads = threadCount;
| ^~~~~~~~~~~
omp/EquityCalculator.cpp: In member function ‘void omp::EquityCalculator::updateResults(const omp::EquityCalculator::BatchResults&, bool)’:
omp/EquityCalculator.cpp:740:13: error: ‘mCallback’ was not declared in this scope
740 | if (mCallback)
| ^~~~~~~~~
make: *** [<builtin>: omp/EquityCalculator.o] Error 1
2022-07-28 13:51:43 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 好像还是不行, 弄了就出新的一堆错误
2022-07-28 09:46:35 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive static_assert( __urngmin < __urngmax, "Uniform random bit generator must define min() < max()");

我删除 static_ 后 就是上面的报错
2022-07-28 09:45:44 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 方法 1 成功解决一部分,但是方法 2 好像不行还是报错了 出现了两个新的错误
In file included from /usr/include/c++/11/bits/stl_algo.h:66,
from /usr/include/c++/11/algorithm:62,
from omp/CombinedRange.cpp:4:
/usr/include/c++/11/bits/uniform_int_dist.h:286:96: error: macro "assert" passed 2 arguments, but takes just 1
286 | assert( __urngmin < __urngmax, "Uniform random bit generator must define min() < max()");


niform_int_distribution<_IntType>::param_type&)’:
/usr/include/c++/11/bits/uniform_int_dist.h:286:9: error: ‘assert’ was not declared in this scope
286 | assert( __urngmin < __urngmax, "Uniform random bit generator must define min() < max()");
2022-07-28 09:36:37 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 我是要 修改 /usr/include/c++/11/bits/uniform_int_dist 这些底层文件是吗? 修改后 会对其他代码编译什么的受影响吗
2022-07-25 18:34:48 +08:00
回复了 hhhhhh123 创建的主题 C make 下遇到的问题,求大佬告知
@AoEiuV020CN 请教一下你是怎么发图片 的
2022-07-25 18:26:40 +08:00
回复了 hhhhhh123 创建的主题 C make 下遇到的问题,求大佬告知
@hhhhhh123
@AoEiuV020CN 这个 能在 win 上面解决吗?
2022-07-25 18:26:02 +08:00
回复了 hhhhhh123 创建的主题 C make 下遇到的问题,求大佬告知
@ysc3839 不知道哦, 网上开源的。
2022-07-25 18:25:45 +08:00
回复了 hhhhhh123 创建的主题 C make 下遇到的问题,求大佬告知
2022-07-25 18:19:21 +08:00
回复了 hhhhhh123 创建的主题 C make 下遇到的问题,求大佬告知
CC=gcc 我改成这个就好了,,不过出了新问题,我先研究下,,这里好像不能删除帖子。我在这里说明下。这个问题是解决了
2022-07-25 18:11:26 +08:00
回复了 hhhhhh123 创建的主题 程序员 现在 各司的 邮件服务器 是怎么弄的?
所有评论都看了,非常感谢大家的建议,, 我个人先 采用 自己搭建邮件服务器, 有服务器还没有域名, 正在申请中。 因为业务是需要发送邮件验证码进行注册的,且用户大部分是国外。
2022-07-20 11:30:50 +08:00
回复了 shawnwang5 创建的主题 问与答 获取目标公司信息
@shawnwang5 你想了解内部 只能从内部入手, 打听内部人员, 网上查能查个啥? 待遇什么的合同,面试的时候就能了解, 造假那就举报,或提桶。
2022-07-20 11:16:10 +08:00
回复了 shawnwang5 创建的主题 问与答 获取目标公司信息
那就要看你 要获取公司的什么信息了
@arthas2234 这。。。。。
@DT27 woc ,这评论哪里看的 ,我怎么没看到。。
@DT27 营养物质 不一定是增肥的吧。
主要是 淘宝评论也挺多的, 大部分追评我也看了。 都是偏向于 有效果
2022-07-19 10:10:23 +08:00
回复了 hhhhhh123 创建的主题 程序员 nginx 如何 配置路径以**开头
@Martens 看了下 服务端的日志,404 是服务端出来的 proxy_pass http://localhost:5000/test;我以为这行代码 不会进行将上面多余的路径加上来, 请求进来居然是 /testa, /testa/b/c
1 ... 4  5  6  7  8  9  10  11  12  13 ... 15  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2733 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 03:17 · PVG 11:17 · LAX 20:17 · JFK 23:17
Developed with CodeLauncher
♥ Do have faith in what you're doing.