Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/124.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在Netbeans中编译V8 Hello World_C++_Netbeans_V8 - Fatal编程技术网

C++ 在Netbeans中编译V8 Hello World

C++ 在Netbeans中编译V8 Hello World,c++,netbeans,v8,C++,Netbeans,V8,谢谢你的阅读 我对C/C++编程比较陌生,已经编写并编译了一个简单的adserver作为个人项目。我现在想合并来自Google的开源V8 javascript引擎,以便在请求期间可以执行编译时不可用的逻辑,以确定使用流行和众所周知的语言提供哪个广告 在过去的两周里,我一直在使用文档构建V8,并且已经能够在Ubuntu 14上的命令提示符下使用以下命令构建并运行hello world: g++ -I. -Iinclude main.cpp -o hello-world -Wl,--start-gr

谢谢你的阅读

我对C/C++编程比较陌生,已经编写并编译了一个简单的adserver作为个人项目。我现在想合并来自Google的开源V8 javascript引擎,以便在请求期间可以执行编译时不可用的逻辑,以确定使用流行和众所周知的语言提供哪个广告

在过去的两周里,我一直在使用文档构建V8,并且已经能够在Ubuntu 14上的命令提示符下使用以下命令构建并运行hello world:

g++ -I. -Iinclude main.cpp -o hello-world -Wl,--start-group out.gn/x64.release/obj/{libv8_{base,libbase,external_snapshot,libplatform,libsampler},third_party/icu/libicu{uc,i18n},src/inspector/libinspector}.a -Wl,--end-group -lrt -ldl -pthread -std=c++0x
我还从ubuntu上的netbeans项目位置使用符号链接来模拟构建示例的文件结构(远程主机上的本地用户目录)

我的IDE是windows上使用远程构建主机(前面提到的ubuntu)的Netbeans,但是我不知道如何获得在上面命令中构建程序的相同编译器标志,以便在project->(右键单击)->properties->build in Netbeans下的链接器和cpp选项下工作。在过去一周左右的时间里,我自己的研究几乎要累坏了,但还没有链接到具体的帖子、博客、搜索等,因为它们没有提供我可以申请的与这篇帖子相关的额外信息

如果有人能帮我找到在项目build in Netbeans下的编译器标志、链接器或链接器库选项中放置的内容,我将不胜感激

问候,


James

-I.-I包括以下路径: C++编译器>包含目录< /p> -lrt-ldl-pthread库: 链接器->库->添加标准库->选择“Posix线程”、“实时”和“动态加载程序”(我不太确定确切的名称,因为我现在不在Linux机器上)

-std=c++0x: C++编译器-C++标准-> C++ 11

-Wl,--start group out.gn/x64.release/obj/{libv8{base,libbase,外部快照,libplatform,libsampler},第三方/icu/libicu{uc,i18n},src/inspector/libinspector}.a-Wl,--end group
我想所有这些都需要深入研究


链接器->附加选项

谢谢Paul,我想说得再深入一点,但需要坐下来接受你的建议一段时间。当然会提供反馈或接受的答案。谢谢Paul,将此留给将来的任何人,唯一突出的步骤是使用echo扩展bash括号符号,并将其重新插入链接器中的其他选项中。