gpt4 book ai didi

c++ - OMNET++: .gdbinit: 没有这样的文件或目录?

转载 作者:太空狗 更新时间:2023-10-29 23:07:07 25 4
gpt4 key购买 nike

我正在使用 Inet,我对我的工作做了一些修改。我创建了一个新的地址类(我没有任何错误)。当我想在我的文件 .cc 中使用此类时我收到此错误:

<!> Warning: opp_run: Cannot check library ../../src/inet: ../../src//libinet.so: undefined symbol: _ZNK12MYAddress3strEv

<!> Error during startup: Cannot load library '../../src//libinet.so': ../../src//libinet.so: undefined symbol: _ZNK12MYGAddress3strEv.
OMNeT++ Discrete Event Simulation (C) 1992-2011 Andras Varga, OpenSim Ltd.
Version: 4.2.2, build: 120327-7947143, edition: Academic Public License -- NOT FOR COMMERCIAL USE

See the license for distribution terms and warranty disclaimer

End.

Simulation terminated with exit code: 1 (I don't know what it means)

我使用了 debbug,我得到:

.gdbinit: no such file or directory But I don't know what it means as well.

所以,如果你能帮助我,我将不胜感激。我不知道如何解决我的问题。

最佳答案

您可以安全地忽略丢失的 .gdbinit 警告。这与您的问题无关。

根本原因很可能是新的 Address 类没有包含在创建的共享库中。请务必重新创建您的 makefile 并检查您是否使用 .cc 作为扩展名以及该文件是否位于 src 目录下。

关于c++ - OMNET++: .gdbinit: 没有这样的文件或目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13543049/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com