g++4.8编译不了auto,已加-std=c++11

ubuntu14.04, 64位, gcc 4.8 g++4.8已装 

文件server_main.cpp_中

 int stringToInt(const std::string& str)
{   
    for(auto s : str)
    {
        if(!isdigit(s)) 
        {
            std::cout<<"illegal number";
            exit(-1);
        }
    }
    ...
}

makefile里代码如下:

 server_objects = m_socket.o serverSocket.o  server_main.o
client_objects = m_socket.o clientSocket.o  client_main.o

all : server client
server: $(server_objects)
    g++ -Wall -std=c++11 -o server $(server_objects)

client: $(client_objects)
    g++ -Wall -std=c++11 -o client $(client_objects)

m_socket: m_socket.cpp
    g++ -std=c++11 -Wall -o m_socket m_socket.cpp
serverSocket: serverSocket.cpp
    g++ -std=c++11 -Wall -o serverSocket serverSocket.cpp
clientSocket: clientSocket.cpp
    g++ -std=c++11 -Wall -o clientSocket clientSocket.cpp
**server_main: server_main.cpp
    g++ -std=c++11 -Wall -o server_main server_main.cpp  **
client_main: client_main.cpp
    g++ -std=c++11 -Wall -o server_main server_main.cpp

clean:
    rm -f *.o server client

执行make后

图片说明
请问怎么解决,是机子还是ubuntu的问题吗。。。。不胜感激。

2个回答

g++ 4.8有点老,用5.x版本的吧。

换gcc6。用最新版本。支持c++14了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
g++4.8编译不了auto,已加-std=c++11
ubuntu14.04, 64位, gcc 4.8 g++4.8已装  ## 文件server\_main.cpp\_中 ``` int stringToInt(const std::string& str) { for(auto s : str) { if(!isdigit(s)) { std::cout<<"illegal number"; exit(-1); } } ... } ``` ## makefile里代码如下: ``` server_objects = m_socket.o serverSocket.o server_main.o client_objects = m_socket.o clientSocket.o client_main.o all : server client server: $(server_objects) g++ -Wall -std=c++11 -o server $(server_objects) client: $(client_objects) g++ -Wall -std=c++11 -o client $(client_objects) m_socket: m_socket.cpp g++ -std=c++11 -Wall -o m_socket m_socket.cpp serverSocket: serverSocket.cpp g++ -std=c++11 -Wall -o serverSocket serverSocket.cpp clientSocket: clientSocket.cpp g++ -std=c++11 -Wall -o clientSocket clientSocket.cpp **server_main: server_main.cpp g++ -std=c++11 -Wall -o server_main server_main.cpp ** client_main: client_main.cpp g++ -std=c++11 -Wall -o server_main server_main.cpp clean: rm -f *.o server client ``` ## 执行make后 ![图片说明](https://img-ask.csdn.net/upload/201605/08/1462645464_105583.png) 请问怎么解决,是机子还是ubuntu的问题吗。。。。不胜感激。
nginx1.17.4下编译安装openssl+nginx-upload-module-2.3.0报错
nginx 版本 1.17.4 使用命令: ./configure --with-pcre=../pcre-8.43 --with-zlib=../zlib-1.2.11 --with-stream --with-http_stub_status_module --add-module=../nginx-upload-module-2.3.0 --with-openssl=../openssl-fips-2.0.16 --with-http_ssl_module make时会报错提示: ![图片说明](https://img-ask.csdn.net/upload/201911/26/1574753562_652830.png)
怎么让g++ 4.8.4编译出的静态库带上std相关内容
由于项目原因,在代码里使用了std带有C++11部分。在g++4.8.4中编译没有问题,但在g++4.4.5编译失败(不支持C++11)。遂想到将这部分代码在g++4.8.4下编译成静态库,然后在g++4.4.5下链接该库。不过依旧报错。提示std中有部分C++11特性的接口有未实现的引用。如何让生成的静态库也包含std部分,这样在g++4.4.5环境下就不依赖系统的std了。或者还有没有其他办法?
用Ubuntu16.04编译iDT算法(c++)时报错:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':(.text+0x20): undefined reference to `main'
最近在学习iDT算法,刚刚接触Ubuntu也刚刚接触c++,很多东西不是很懂,请教各位: 我在编译iDT算法的时候,需要依赖opencv和ffmpeg两个库,我安装成功并且确保这两个库能用之后,去编译iDT算法,'make'之后报错: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578648835_846854.png) 查过资料,有的人说是缺少main函数,但是我确保.cpp文件里是有main函数的。 也有帖子说是crt1.o文件的问题,也有帖子说是动态库的问题,现在很迷茫,不知道问题出在哪里,希望各位能够帮助我,万分感谢。 同时为了方便各位帮我找到问题,我上一下我的makefile文件以及Opencv和ffmpeg的安装信息。 Makefile文件 ``` # set the binaries that have to be built TARGETS := DenseTrack Video # set the build configuration set BUILD := release #BUILD := debug # set bin and build dirs BUILDDIR := .build_$(BUILD) BINDIR := $(BUILD) # libraries LDLIBS = $(addprefix -l, $(LIBS) $(LIBS_$(notdir $*))) LIBS := \ opencv_core opencv_highgui opencv_video opencv_imgproc \ avformat avdevice avutil avcodec swscale # set some flags and compiler/linker specific commands CXXFLAGS = -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall $(CXXFLAGS_$(BUILD)) -I. -I/opt/include CXXFLAGS_debug := -ggdb CXXFLAGS_release := -O3 -DNDEBUG -ggdb LDFLAGS = -L/opt/lib -pipe -Wall $(LDFLAGS_$(BUILD)) LDFLAGS_debug := -ggdb LDFLAGS_release := -O3 -ggdb include make/generic.mk ``` 下面是opencv和ffmpeg的安装信息: ffmpeg: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578649174_591798.png) opencv: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578649330_643110.png) 恳请各位帮忙!!(小弟没有金币,没办法给悬赏,还请各位见谅!)
react"^16.8.6" creacte-react-app@3.0.1脚手架npm run eject 问题?
请问 ,我npm run eject 后,config文件夹下怎么只有一个webpack.config.js文件? 我看教程和其他文章都写的是有2个文件的,一个是webpack.config.dev.js 开发环境下的配置项,另一个是webpack.config.prod.js 生产环境下的配置项. 如果这是由于更新后的正常现象,那么请问怎么添加less配置代码? 另外,执行npm run eject 暴露配置文件后, 执行npm run start 就一直报错, 缺少几种loader. 按照错误提示安装'@babel/plugin-transform-react-jsx-source' 后,又找不到is-wsl. 安装了is-wsl 又再次提示找不到 @babel/plugin-transform-react-jsx-source. 最后重新 npm install ,在执行 npm run start 还是不能成功编译.提示错误: Starting the development server... Failed to compile. ./node_modules/react-dev-utils/formatWebpackMessages.js Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils' Compiling... Failed to compile. ./node_modules/react-dev-utils/formatWebpackMessages.js Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils' Compiling... Failed to compile. ./node_modules/react-dev-utils/formatWebpackMessages.js Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils' 请帮我看看怎么解决这几个问题?
VC6.0编译问题“link: invalid option -- l”
VC6.0编译出现以下问题,急问如何解决? Creating library... link: invalid option -- l Try `link --help' for more information. Error executing link.exe. msModule.dll - 1 error(s), 0 warning(s)
maven3.3.9编译hadoop2.6.5报错 帮忙解决问题
[INFO] Building Apache Hadoop Main 2.6.5 [INFO] ------------------------------------------------------------------------ Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata.xml [WARNING] Checksum validation failed, expected <html> but is b113767b47336dcc165c5dd2222b5df4cb86b7ce for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata.xml [WARNING] Could not validate integrity of download from http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata.xml: Checksum validation failed, expected <html> but is b113767b47336dcc165c5dd2222b5df4cb86b7ce [WARNING] Checksum validation failed, expected <html> but is b113767b47336dcc165c5dd2222b5df4cb86b7ce for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata.xml Downloaded: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata.xml (99 KB at 11.8 KB/sec) [WARNING] The metadata /root/.m2/repository/org/apache/maven/plugins/maven-javadoc-plugin/maven-metadata-ibiblio.org.xml is invalid: end tag name </body> must match start tag name <hr> from line 888 (position: START_TAG seen ... 08-Nov-2014 19:04 207\r\n</pre><hr></body>... @888:18) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Hadoop Main ................................. FAILURE [ 8.416 s] [INFO] Apache Hadoop Build Tools .......................... SKIPPED [INFO] Apache Hadoop Project POM .......................... SKIPPED [INFO] Apache Hadoop Annotations .......................... SKIPPED [INFO] Apache Hadoop Assemblies ........................... SKIPPED [INFO] Apache Hadoop Project Dist POM ..................... SKIPPED [INFO] Apache Hadoop Maven Plugins ........................ SKIPPED [INFO] Apache Hadoop MiniKDC .............................. SKIPPED [INFO] Apache Hadoop Auth ................................. SKIPPED [INFO] Apache Hadoop Auth Examples ........................ SKIPPED [INFO] Apache Hadoop Common ............................... SKIPPED [INFO] Apache Hadoop NFS .................................. SKIPPED [INFO] Apache Hadoop KMS .................................. SKIPPED [INFO] Apache Hadoop Common Project ....................... SKIPPED [INFO] Apache Hadoop HDFS ................................. SKIPPED [INFO] Apache Hadoop HttpFS ............................... SKIPPED [INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED [INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED [INFO] Apache Hadoop HDFS Project ......................... SKIPPED [INFO] hadoop-yarn ........................................ SKIPPED [INFO] hadoop-yarn-api .................................... SKIPPED [INFO] hadoop-yarn-common ................................. SKIPPED [INFO] hadoop-yarn-server ................................. SKIPPED [INFO] hadoop-yarn-server-common .......................... SKIPPED [INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED [INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED [INFO] hadoop-yarn-server-applicationhistoryservice ....... SKIPPED [INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED [INFO] hadoop-yarn-server-tests ........................... SKIPPED [INFO] hadoop-yarn-client ................................. SKIPPED [INFO] hadoop-yarn-applications ........................... SKIPPED [INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED [INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED [INFO] hadoop-yarn-site ................................... SKIPPED [INFO] hadoop-yarn-registry ............................... SKIPPED [INFO] hadoop-yarn-project ................................ SKIPPED [INFO] hadoop-mapreduce-client ............................ SKIPPED [INFO] hadoop-mapreduce-client-core ....................... SKIPPED [INFO] hadoop-mapreduce-client-common ..................... SKIPPED [INFO] hadoop-mapreduce-client-shuffle .................... SKIPPED [INFO] hadoop-mapreduce-client-app ........................ SKIPPED [INFO] hadoop-mapreduce-client-hs ......................... SKIPPED [INFO] hadoop-mapreduce-client-jobclient .................. SKIPPED [INFO] hadoop-mapreduce-client-hs-plugins ................. SKIPPED [INFO] Apache Hadoop MapReduce Examples ................... SKIPPED [INFO] hadoop-mapreduce ................................... SKIPPED [INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED [INFO] Apache Hadoop Distributed Copy ..................... SKIPPED [INFO] Apache Hadoop Archives ............................. SKIPPED [INFO] Apache Hadoop Rumen ................................ SKIPPED [INFO] Apache Hadoop Gridmix .............................. SKIPPED [INFO] Apache Hadoop Data Join ............................ SKIPPED [INFO] Apache Hadoop Ant Tasks ............................ SKIPPED [INFO] Apache Hadoop Extras ............................... SKIPPED [INFO] Apache Hadoop Pipes ................................ SKIPPED [INFO] Apache Hadoop OpenStack support .................... SKIPPED [INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED [INFO] Apache Hadoop Client ............................... SKIPPED [INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED [INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED [INFO] Apache Hadoop Tools Dist ........................... SKIPPED [INFO] Apache Hadoop Tools ................................ SKIPPED [INFO] Apache Hadoop Distribution ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 06:03 min [INFO] Finished at: 2018-06-23T11:25:17+08:00 [INFO] Final Memory: 27M/69M [INFO] ------------------------------------------------------------------------ [ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-javadoc-plugin' from the repositories [local (/root/.m2/repository), ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2)]: Plugin not found in any plugin repository -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException You have new mail in /var/spool/mail/root
Hyperledgar fabric1.4中如何离线安装
我知道可以先将docker-compose中的需要的镜像都下载下来。导入到自己的机器 fabric-baseimage.tar fabric-ca.tar fabric-ccenv.tar fabric-couchdb.tar fabric-nodeenv.tar fabric-orderer.tar fabric-peer.tar fabric-tools.tar 但在实例化链码的时候是会将链码编译为一个镜像。 这个过程是程序完成的。如果是离线的情况下无法下载基础镜像。无法完成实例化的步骤 不知道有谁知道这个基础镜像是那一个啊
QT ARM 交叉编译 求帮助
已经安装 QT5.2.1for linux 和 arm-linux-gcc 以及 qt-4.8.3-linux-arm-install。 执行#arm-linux-gcc -v 和#qmake -v 都能成功现实版本号。而且我已经在/etc/profile中添加: export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin export PATH=$PATH:/usr/local/qt-4.8.3-linux-arm-install/bin export QMAKESPEC=/usr/local/qt-4.8.3-linux-arm-install/mkspecs/qws/linux-arm-g++ 问题1:在编译hello.cpp文件时,显示如下: wangsy@9527laptop:~/test$ qmake -project wangsy@9527laptop:~/test$ qmake wangsy@9527laptop:~/test$ make arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/qt-4.8.3-linux-arm-install/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/qt-4.8.3-linux-arm-install/include/QtCore -I/usr/local/qt-4.8.3-linux-arm-install/include/QtNetwork -I/usr/local/qt-4.8.3-linux-arm-install/include/QtGui -I/usr/local/qt-4.8.3-linux-arm-install/include -I. -I. -o hello.o hello.cpp arm-linux-g++ -Wl,-O1 -Wl,-rpath,/usr/local/qt-4.8.3-linux-arm-install/lib -o test hello.o -L/usr/local/qt-4.8.3-linux-arm-install/lib -lQtGui -L/usr/local/qt-4.8.3-linux-arm-install/lib -lQtNetwork -lQtCore -lpthread 问题2:在 Qt Creator 中,在Qt versions中已经添加了qt-4.8.3-linux-arm-install中的qmake,路径是/usr/local/qt-4.8.3-linux-arm-install/bin/qmake;在Compilers中添加了arm-linux-gcc,路径是/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/bin/gcc。可是在build的时候会显示这样的信息: Error while parsing file /home/wangsy/QT_test/console_test/console_test.pro. Giving up. Cannot read /qws/linux-arm-g++/qmake.conf: No such file or directory Could not read qmake configuration file /qws/linux-arm-g++/qmake.conf. Could not read qmake configuration file /qws/linux-arm-g++/qmake.conf. 对于问题一,这种提示是说我环境没配好吗?如果是的话我应该怎么修改? 对于问题二,应该在哪里配置才能解决这个问题? 跪谢大神帮助~~
Spark1.3基于scala2.11编译hive-thrift报错,关于jline的
[INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Spark Project Hive Thrift Server 1.3.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ spark-hive-thriftserver_2.11 --- [INFO] Deleting /usr/local/spark-1.3.0/sql/hive-thriftserver/target [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ spark-hive-thriftserver_2.11 --- [INFO] [INFO] --- scala-maven-plugin:3.2.0:add-source (eclipse-add-source) @ spark-hive-thriftserver_2.11 --- [INFO] Add Source directory: /usr/local/spark-1.3.0/sql/hive-thriftserver/src/main/scala [INFO] Add Test Source directory: /usr/local/spark-1.3.0/sql/hive-thriftserver/src/test/scala [INFO] [INFO] --- build-helper-maven-plugin:1.8:add-source (add-scala-sources) @ spark-hive-thriftserver_2.11 --- [INFO] Source directory: /usr/local/spark-1.3.0/sql/hive-thriftserver/src/main/scala added. [INFO] [INFO] --- build-helper-maven-plugin:1.8:add-source (add-default-sources) @ spark-hive-thriftserver_2.11 --- [INFO] Source directory: /usr/local/spark-1.3.0/sql/hive-thriftserver/v0.13.1/src/main/scala added. [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ spark-hive-thriftserver_2.11 --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spark-hive-thriftserver_2.11 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /usr/local/spark-1.3.0/sql/hive-thriftserver/src/main/resources [INFO] Copying 3 resources [INFO] [INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) @ spark-hive-thriftserver_2.11 --- [WARNING] Zinc server is not available at port 3030 - reverting to normal incremental compile [INFO] Using incremental compilation [INFO] compiler plugin: BasicArtifact(org.scalamacros,paradise_2.11.2,2.0.1,null) [INFO] Compiling 9 Scala sources to /usr/local/spark-1.3.0/sql/hive-thriftserver/target/scala-2.11/classes... [ERROR] /usr/local/spark-1.3.0/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:25: object ConsoleReader is not a member of package jline [ERROR] import jline.{ConsoleReader, History} [ERROR] ^ [WARNING] Class jline.Completor not found - continuing with a stub. [WARNING] Class jline.ConsoleReader not found - continuing with a stub. [ERROR] /usr/local/spark-1.3.0/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:165: not found: type ConsoleReader [ERROR] val reader = new ConsoleReader() [ERROR] ^ [ERROR] Class jline.Completor not found - continuing with a stub. [WARNING] Class com.google.protobuf.Parser not found - continuing with a stub. [WARNING] Class com.google.protobuf.Parser not found - continuing with a stub. [WARNING] Class com.google.protobuf.Parser not found - continuing with a stub. [WARNING] Class com.google.protobuf.Parser not found - continuing with a stub. [WARNING] 6 warnings found [ERROR] three errors found [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Spark Project Parent POM ........................... SUCCESS [01:20 min] [INFO] Spark Project Networking ........................... SUCCESS [01:31 min] [INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 47.808 s] [INFO] Spark Project Core ................................. SUCCESS [34:00 min] [INFO] Spark Project Bagel ................................ SUCCESS [03:21 min] [INFO] Spark Project GraphX ............................... SUCCESS [09:22 min] [INFO] Spark Project Streaming ............................ SUCCESS [15:07 min] [INFO] Spark Project Catalyst ............................. SUCCESS [14:35 min] [INFO] Spark Project SQL .................................. SUCCESS [16:31 min] [INFO] Spark Project ML Library ........................... SUCCESS [18:15 min] [INFO] Spark Project Tools ................................ SUCCESS [01:50 min] [INFO] Spark Project Hive ................................. SUCCESS [13:58 min] [INFO] Spark Project REPL ................................. SUCCESS [06:13 min] [INFO] Spark Project YARN ................................. SUCCESS [07:05 min] [INFO] Spark Project Hive Thrift Server ................... FAILURE [01:39 min] [INFO] Spark Project Assembly ............................. SKIPPED [INFO] Spark Project External Twitter ..................... SKIPPED [INFO] Spark Project External Flume Sink .................. SKIPPED [INFO] Spark Project External Flume ....................... SKIPPED [INFO] Spark Project External MQTT ........................ SKIPPED [INFO] Spark Project External ZeroMQ ...................... SKIPPED [INFO] Spark Project Examples ............................. SKIPPED [INFO] Spark Project YARN Shuffle Service ................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:25 h [INFO] Finished at: 2015-04-16T14:11:24+08:00 [INFO] Final Memory: 62M/362M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "hadoop-2.5" could not be activated because it does not exist. [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project spark-hive-thriftserver_2.11: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed. CompileFailed -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :spark-hive-thriftserver_2.11
mod_tile编译出错 -std=c++11 or -std=gnu++11
make[1]: 正在进入目录 `/home/wml/src/mod_tile-master' depbase=`echo src/gen_tile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I./includes -I/usr/include/freetype2 -pthread -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/i386-linux-gnu/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/i386-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DSYSTEM_LIBINIPARSER=0 -g -O2 -MT src/gen_tile.o -MD -MP -MF $depbase.Tpo -c -o src/gen_tile.o src/gen_tile.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/c++/4.8/mutex:35:0, from /usr/local/include/mapnik/config.hpp:56, from /usr/local/include/mapnik/color.hpp:27, from /usr/local/include/mapnik/map.hpp:27, from src/gen_tile.cpp:2: /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 楼主:这个问题怎么解决?
求助:Ubuntu16.04交叉编译Qt4.8.6出错
目标机器:银河麒麟/arm64,所用交叉编译器为:aarch64-linux-gnu-g++ ./configure -opensource -confirm-license -prefix /opt/arm_qt4.8.6 -xplatform qws/linux-aarch64-gnu-g++ -shared -no-qt3support -no-phonon -no-phonon-backend -qt-zlib -no-gif -no-libtiff -no-qvfb -qt-libjpeg -no-nis -no-opengl -no-cups -no-webkit -no-glib -no-dbus -no-rpath -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -no-audio-backend -no-svg -no-javascript-jit -no-script -no-scripttools -no-multimedia -no-openssl -nomake tools -nomake examples -nomake demos -DQT_ARCH_ARM _在mkspecs/qws/linux-aarch64-gnu-g++/中的qmake.conf也已经修改完毕。 在make时出错如下图: ![图片说明](https://img-ask.csdn.net/upload/201807/17/1531793511_417806.png)
RK3328平台android8.1编译报错
-fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.d -o out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o frameworks/base/tools/validatekeymaps/Main.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 29/76723] host C++: conscrypt_ge...nts/src/gen/cpp/generate_constants.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I external/conscrypt -I out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates -I out/host/linux-x86/gen/EXECUTABLES/conscrypt_generate_constants_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.d -o out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o external/conscrypt/constants/src/gen/cpp/generate_constants.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 30/76723] host C++: protoc-gen-j...tools/streaming_proto/string_utils.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/base/tools/streaming_proto -I out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates -I out/host/linux-x86/gen/EXECUTABLES/protoc-gen-javastream_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.d -o out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o frameworks/base/tools/streaming_proto/string_utils.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 49/76723] build out/target/common/obj/all-event-log-tags.txt ninja: build stopped: subcommand failed. 17:38:37 ninja failed with: exit status 1 make: *** [run_soong_ui] Error 1 jda@jda-ubut12-ser:rk3328_8.1_box_190306$
请问SDL2.0是怎么编译到ios平台的呢,我按照README-ios.txt编译但是编译过不了
uilding with iOS SDK v6.1 for iOS >= 3.0 checking build system type... i386-apple-darwin12.4.0 checking host system type... armv6-apple-darwin checking how to print strings... printf checking for armv6-apple-darwin-gcc... /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 checking whether the C compiler works... no configure: error: in `/Users/PS/SDL2-2.0.0/build/armv6': configure: error: C compiler cannot create executables See `config.log' for more details 请问有遇到这样的问题没?我的系统 OS X 10.8.4,XCode4.6.3 SDK6.1
Android Studio 3.5.2 / 3.5.3 cocos2d-x 3.17.2 android编译问题
先上环境 Java:Java1.8.60 SDK:API -> android-28 Tools -> 26.1.1 NDK:android-ndk-r16b cocos官方说是以android-ndk-r16b测试的,所以我用了这个 ANT:1.10.7 Python:2.7.9 Android studio :3.5.3 cocos2d-x:cocos2d-x 3.17.2 好吧,就这些了,首先我用cocos new创建项目 用Android studio 3.5.3 打开项目,OK,测试成功!如图 <br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576218933_195606.png) <br><br> 能编译成功中途也遇到了各种坑,先不说这个,再说一说后续开发的问题 比如:<br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576219089_983324.png) <br><br> 上图就是我自己重新创建了一个MainScene的场景,在HelloWorldScene.cpp中引用这个类,并实例化,如图:<br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576219341_669768.png) <br><br> 在HelloWorldScene::init()中创建一个sc的MainScene指针 <br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576219348_260859.png) <br><br> 以上代码在VS2015 编译通过,或者创建一个按钮点击事件中创建MainScene场景,并replaceScene函数替换当前场景,VS编译没有问题,但android studio提示MsinScene::createScene()未定义!!! <br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576219705_649754.png) <br><br> 说到这里,肯定有人会说,你应该是Android.mk没有包含cpp文件吧?<br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576219788_453715.png) <br><br> 到底是哪里出了错误,为什么要这样对我啊 我在MainScene文件中定义其他的类或者继承类却能通过,如下:<br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576220195_583121.png)![图片说明](https://img-ask.csdn.net/upload/201912/13/1576220201_747295.png)![图片说明](https://img-ask.csdn.net/upload/201912/13/1576220208_452735.png) <br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576220308_238647.png) <br><br> 为什么会这样? 定义其他类都没有问题,Scene就搞不了事情了,救命~~啊 <br><br><br> 我自己搞定了,编译发现gradle.properties 中的编译模式是Cmake,并不是NDK-Build模式,如下:<br> PROP_BUILD_TYPE=cmake<br> 所以Android.mk文件包含ccp是没有用的,只能在项目根目录的CMakeLists.txt文件里包含cpp文件就可以了,如下图:<br><br> ![图片说明](https://img-ask.csdn.net/upload/201912/13/1576229813_129581.png) <br><br>纠结好久的问题终于解决了,希望能帮到别人<br> 我用的工具是:<br> android studio 3.5.3<br> cocos2d-x 3.17.2<br> NDK r16b<br> SDK API 28 <br> SDK build tools 26.1.1<br> apache ant 1.10.7 <br> python 2.7.9<br> java jdk1.8.0_91<br> Visual studio 2015 社区版<br>
QT5.13.2 编译mysql驱动报错,很难受,求助
我已经按照网上方法进行了设置,但是编译还是报错"Project ERROR: Library 'mysql' is not defined." ![图片说明](https://img-ask.csdn.net/upload/202001/17/1579256085_641269.png) 还有 找不到qtsqldrivers-config.pri这个文件是不是会有影响 我是按照这个做的:https://blog.csdn.net/jin761153454/article/details/100760807
关于vb.net反编译的问题---请高人指点
背景:使用asp.net做前台页面,后台代码是vb.net。之后使用VS发布网站。发布网站的时候将所有资源(包括aspx/aspx.vb/js/resource等等吧)都打包为DLL。在网站的Bin目录下。 任务:需要将Bin目录下的DLL反编译后获得代码,之后再编译得到代码生成DLL后放到网站发布的Bin目录下。之后重启IIS服务,网站可以正常运行。也就是说页面可以显示出来。 遇到的问题。使用Reflactor反编译代码后,得到vb.net代码。使用VSS打开得到的代码后,重新编译,解决编译错误后,可以生成DLL。将DLL放到Bin目录下后,重启IIS服务后,网站运行出现错误。在代码中使用了System.Web.UI.TemplateControl.ReadStringResource,页面中显示FindResource failed。
openwrt 编译失败,无法下载mbedtls-1-3-11-gpl-tgz
solving polarssl.org (polarssl.org)... 79.170.91.36 Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz [following] --2015-06-11 01:39:41-- https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz Resolving tls.mbed.org (tls.mbed.org)... 79.170.91.36 Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1731809 (1.7M) [application/x-gzip] Saving to: 'STDOUT' 20% [=======> ] 360,408 17.7KB/s in 21s 2015-06-11 01:40:06 (17.1 KB/s) - Connection closed at byte 360408. Retrying. --2015-06-11 01:40:07-- (try: 2) https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1731809 (1.7M) [application/x-gzip] Saving to: 'STDOUT' 32% [===========> ] 555,968 30.5KB/s in 22s 2015-06-11 01:40:32 (24.6 KB/s) - Connection closed at byte 555968. Retrying. --2015-06-11 01:40:34-- (try: 3) https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1731809 (1.7M) [application/x-gzip] Saving to: 'STDOUT' 32% [===========> ] 555,968 26.6KB/s in 22s 2015-06-11 01:40:58 (24.6 KB/s) - Connection closed at byte 555968. Retrying. --2015-06-11 01:41:01-- (try: 4) https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1731809 (1.7M) [application/x-gzip] Saving to: 'STDOUT' 30% [==========> ] 524,224 23.9KB/s in 22s 2015-06-11 01:41:24 (23.0 KB/s) - Connection closed at byte 555968. Retrying. --2015-06-11 01:41:28-- (try: 5) https://tls.mbed.org/download/mbedtls-1.3.11-gpl.tgz Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1731809 (1.7M) [application/x-gzip] Saving to: 'STDOUT' 26% [=========> ] 457,680 21.7KB/s in 24s 2015-06-11 01:41:54 (18.5 KB/s) - Connection closed at byte 555968. Giving up. Download failed. --2015-06-11 01:41:54-- http://mirror2.openwrt.org/sources/mbedtls-1.3.11-gpl.tgz Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11 Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-06-11 01:41:55 ERROR 404: Not Found. Download failed. --2015-06-11 01:41:55-- http://downloads.openwrt.org/sources/mbedtls-1.3.11-gpl.tgz Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177 Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-06-11 01:41:56 ERROR 404: Not Found. Download failed. No more mirrors to try - giving up. make[3]: *** [/home/hand1234/openwrt/trunk/dl/mbedtls-1.3.11-gpl.tgz] Error 2 make[3]: Leaving directory `/home/hand1234/openwrt/trunk/package/libs/polarssl' make[2]: *** [package/libs/polarssl/compile] Error 2 make[2]: Leaving directory `/home/hand1234/openwrt/trunk' make[1]: *** [/home/hand1234/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/hand1234/openwrt/trunk' make: *** [world] 错误 2
vs2019配置opencv3.4.5和opencv_contrib-3.4.5编译成功后生成install报错
按照网上的教程cmake成功了,重新生成解决方案也成功了,现在点仅生成install报错,很多回答都是管理员权限,我试了没有用,到底是什么问题啊?卡在这里很长时间了
安装gcc4.9.0之后找不到include目录
[root@ptb habi]# g++ -v ccc.cpp 使用内建 specs。 COLLECT_GCC=g++ 目标:i686-pc-linux-gnu 配置为:../configure --prefix=/usr/local/gcc-4.9.0 --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++ 线程模型:posix gcc 版本 4.9.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=pentiumpro' cc1plus -quiet -v -iprefix /usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/ -D_GNU_SOURCE ccc.cpp -quiet -dumpbase ccc.cpp -mtune=generic -march=pentiumpro -auxbase ccc -version -o /tmp/ccpjzXOC.s GNU C++ (GCC) 版本 4.9.0 (i686-pc-linux-gnu) 由 GNU C 版本 4.9.0 编译,GMP 版本 4.3.2,MPFR 版本 2.4.2,MPC 版本 0.8.1 GGC 准则:--param ggc-min-expand=100 --param ggc-min-heapsize=131072 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0” 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0/i686-pc-linux-gnu” 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0/backward” 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/include” 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/include-fixed” 忽略不存在的目录“/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/include” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0/i686-pc-linux-gnu” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../include/c++/4.9.0/backward” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/include” 忽略不存在的目录“/usr/local/include” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/include-fixed” 忽略不存在的目录“/usr/bin/../lib/gcc/../../lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/include” 忽略重复的目录“/usr/include” #include "..." 搜索从这里开始: #include <...> 搜索从这里开始: /usr/bin/../lib/gcc/../../include 搜索列表结束。 GNU C++ (GCC) 版本 4.9.0 (i686-pc-linux-gnu) 由 GNU C 版本 4.9.0 编译,GMP 版本 4.3.2,MPFR 版本 2.4.2,MPC 版本 0.8.1 GGC 准则:--param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 3c13c9968389e205e0f7e12bfe79e4e8 ccc.cpp:1:20: 致命错误:iostream:没有那个文件或目录 #include <iostream> ^ 编译中断。
相见恨晚的超实用网站
相见恨晚的超实用网站 持续更新中。。。
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
python 简易微信实现(注册登录+数据库存储+聊天+GUI+文件传输)
socket+tkinter详解+简易微信实现 历经多天的努力,查阅了许多大佬的博客后终于实现了一个简易的微信O(∩_∩)O~~ 简易数据库的实现 使用pands+CSV实现数据库框架搭建 import socket import threading from pandas import * import pymysql import csv # 创建DataFrame对象 # 存储用户数据的表(...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
JavaScript 为什么能活到现在?
作者 | 司徒正美 责编 |郭芮 出品 | CSDN(ID:CSDNnews) JavaScript能发展到现在的程度已经经历不少的坎坷,早产带来的某些缺陷是永久性的,因此浏览器才有禁用JavaScript的选项。甚至在jQuery时代有人问出这样的问题,jQuery与JavaScript哪个快?在Babel.js出来之前,发明一门全新的语言代码代替JavaScript...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
Python 编程开发 实用经验和技巧
Python是一门很灵活的语言,也有很多实用的方法,有时候实现一个功能可以用多种方法实现,我这里总结了一些常用的方法和技巧,包括小数保留指定位小数、判断变量的数据类型、类方法@classmethod、制表符中文对齐、遍历字典、datetime.timedelta的使用等,会持续更新......
吐血推荐珍藏的Visual Studio Code插件
作为一名Java工程师,由于工作需要,最近一个月一直在写NodeJS,这种经历可以说是一部辛酸史了。好在有神器Visual Studio Code陪伴,让我的这段经历没有更加困难。眼看这段经历要告一段落了,今天就来给大家分享一下我常用的一些VSC的插件。 VSC的插件安装方法很简单,只需要点击左侧最下方的插件栏选项,然后就可以搜索你想要的插件了。 下面我们进入正题 Material Theme ...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
相关热词 c#中dns类 c#合并的excel c# implicit c#怎么保留3个小数点 c# 串口通信、 网络调试助手c# c# 泛型比较大小 c#解压分卷问题 c#启动居中 c# 逻辑或运算符
立即提问