无法创建可执行文件 [英] Cannot create executable

查看:121
本文介绍了无法创建可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不得不添加一些功能之前,我有一个运行得很整齐的项目.功能是几行代码和一个新的.msg定义文件.在添加内容之后,程序会显示以下消息:

I had a project running pretty neat until I had to add a few features. The features was a few lines of code and a new .msg definition file. After the additions when build the program shows this message:

make MODE=debug CONFIGNAME=gcc-debug all 
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `mkdir -p "out/gcc-debug/" && echo "-g -Wall   -I/usr/include -fno-stack-protector  -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER  -I"C:/Program Files (x86)/MySQL/MySQL Connector C++ 1.1.6/include" -I"C:/Program Files (x86)/MySQL/MySQL Connector C++ 1.1.6/include/cppconn" -IC:/local/boost_1_58_0/ -I. -IC:/Users/LuisH.Forchesatto/Downloads/omnetpp-4.6/include" >out/gcc-debug//.last-copts'
Creating executable: out/gcc-debug//DB5.exe

该项目的文件在下面.修改之前我没有文件,因此无法撤消更改.一旦我在这里发布了一个类似的问题,并且对makefile文件进行了一些修改,它们就可以正常解决了,但这一次对我来说似乎还不错.

The files of the project are below. I don't have the files before the modifications so is not possible to undo the changes. Once I posted here a similar issue and a few modifications to the makefile file solved gracefully, but this time it seems alright for me.

Dropbox与项目文件的链接: https://dl.dropboxusercontent.com/u/85576999/Db5.rar

Dropbox link with the project files: https://dl.dropboxusercontent.com/u/85576999/Db5.rar

推荐答案

该问题似乎是由于拥有一个以上保存节点算法的.cc文件引起的.

The problem seems to be caused by having more than one .cc file which holds the nodes algorithm.

将所有C ++代码放入同一个文件中,并通过头(.h)文件包括其他例程,似乎不会产生任何错误.

Putting all C++ code within the same file and including other routines via header (.h) files seems not to generate any errors.

这篇关于无法创建可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆