OMNeT ++:更改为.cc类定义不适用于模拟 [英] OMNeT++: Changes is .cc class definition do not apply in simulation

查看:62
本文介绍了OMNeT ++:更改为.cc类定义不适用于模拟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个非常简单的网络(类似于TicToc示例).我的问题是,当我为已定义的类之一更改.cc文件时,所做的更改在我运行模拟时不适用.具体来说,我更改了消息的字符串名称,但没有任何效果.

I have built a very simple network (similar to TicToc example). My problem is that when I change the .cc file for one of the defined classes, the changes do not apply when I run the simulation. Specifically I have changed the string name of a message, but with no effects.

当我回到TicToc示例并在.cc文件中执行类似更改时,所做的更改就很好了.

When I go back to the TicToc example and I perform a similar change in the .cc file, the change applies perfectly fine.

我感觉问题出在构建make文件等上.有什么方法可以从头开始构建项目吗?

I have the feeling that the problem lies on building the make files, etc. Is there any way to build the project from scratch?

推荐答案

此问题通过在每次新模拟之前删除在源文件夹中创建的.exe文件来解决.显然,我的计算机无法在模拟过程中自动删除当前的.exe文件,因此我必须手动执行此操作.

The problem was solved by removing the .exe file created in the source folder before each new simulation. Apparently, my computer is not able to automatically remove the current .exe file during simulation and I therefore have to do it manually.

这篇关于OMNeT ++:更改为.cc类定义不适用于模拟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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