Home AMX User Forum NetLinx Studio

NS3 compiler error clue

Okay,
NS3 has been KILLING me with all the complier errors and file problems it's been having. However, I think I've discovered a behavior that might help the folks at AMX sussing out this problem. I've found that when I haver a compiler error I can get a good compile by doing the following (most times , but not all)

I quit NS3, go into the folder with the project and delete the project_name_here.src , .tkn and .tko files NS3 creates. Then reopen the project and hit build system and get one good compile. As long as I don't make any changes I can hit compile again with success. If I make any changes, it blows up again and I have to redo the above process.

Comments

  • DHawthorneDHawthorne Posts: 4,584
    I never get compiler errors, but I also never build an entire project. I individually click the "Compile as NetLinx" button for every module, then the main program. It's gotten to be such an ingrained habit that I forgot the "Build Project" option even existed.
  • viningvining Posts: 4,368
    DHawthorne wrote: »
    I never get compiler errors, but I also never build an entire project. I individually click the "Compile as NetLinx" button for every module, then the main program. It's gotten to be such an ingrained habit that I forgot the "Build Project" option even existed.
    Ditto. The only time I actully used "Build Project" was to see what it did. I found it was a waste of time. It's quicker and easier to do as Dave does and just save includes that have changed, re-compile modules that have change and then compile the main.
  • jjamesjjames Posts: 2,908
    I ran into all sorts of problems of dependency with build project in the past that I just remove that button all together and just use compile netlinx.
  • Personally i had some problems with the Netlinx compiler and the Comodo Internet Security suite. When the
    Defence+ was activated the compiler was never finishing compilation and some times it was not even producing the compiled files (.tkn .src etc). Deactivating the Defence+ feature everything is working well.

    About the "Build project" command. I only use it when i have many modules in a project and do not remember which
    ones have been compiled with the latest changes i made. The only thing that i have to keep in mind is that the "Build
    Project" works only in the ACTIVE SYSTEM of NXS. If i try to Build another system the compiler looses the paths of
    the included files...
  • Jorde_VJorde_V Posts: 393
    I've had these exact same issues Eric, but never figured out why. And like you removed those files. Then it started happening again so I remade the workspace file and it stopped doing it. Maybe you can try that out, if that doesn't work pack it as an axw and go from there.
Sign In or Register to comment.