简体   繁体   English

在没有netbeans的情况下运行C ++ netbeans项目

[英]Run C++ netbeans project without netbeans

Well I have been developing an application in C++ with netbeans. 好吧,我一直在用netbeans用C ++开发一个应用程序。 Now comes the time that I want to use different tools to measure/test/improve my app, for example "valgrid" or a profiler. 现在到了我想使用其他工具来衡量/测试/改进我的应用程序的时候了,例如“ valgrid”或探查器。 Netbeans has created a .o file for every pair of .h and .cpp classe I have plus the main.cpp. Netbeans为我拥有的每对.h和.cpp类以及main.cpp创建了一个.o文件。 How do I link all this to run them from command line? 我如何链接所有这些以从命令行运行它们? On the run should I be thinking of the external libraries I added? 在运行时,我应该考虑添加的外部库吗? I just need to find the executable and run it from command line. 我只需要找到可执行文件并从命令行运行它。

Thanks ;) 谢谢 ;)

You should be looking at writing a makefile . 您应该正在看写一个makefile Here's a tutorial . 这是一个教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM