Home AMX User Forum AMX Technical Discussion

received code from master controller but will not compile workspace

i have this project with Apple where i'm to add control for a NEC NP3250W projector and control for a motorized screen.

upon modifying the existing source code i had to retrieve it from the processor along with two touch panel files. i tried compiling it creating a new workspace but it will not compile without any errors.

it is saying that 2 of my include files "systemdefinition.axi" and "codecincludes.axi" contain errors.

now how come when i retrieved the source code from the master controller that these two files were missing in the first place? shouldn't they have been there to build the active system without any errors?

now i cannot update my code without having those errors removed.

any work around for this?

Comments

  • PhreaKPhreaK Posts: 966
    Did you try compiling before making any modifications? What are the errors?
  • yes, that was the first thing i did. it wouldn't compile without those missing #include files that were never even there.
  • rfletcherrfletcher Posts: 217
    I use a lot of include files in my systems, and I've noticed that Studio just doesn't always get all the include files added to the .src file for some reason. It occasionally will miss a file if it's not actually added to the workspace (and is just in a directory that you've added to the NL compiler preferences), or if the include file doesn't actually contain any code to be compiled (I use a separate file for my revision notes and if I forget to add a constant or something at the end of the file it never makes it into .src). It may also miss other files, but I'm not sure.
  • ericmedleyericmedley Posts: 4,177
    I just ran a test on a system to see what would happen. I too use tons of includes and modules in my systems.

    On the system I just downloaded, I did get all the includes and modules back as long as they were compiled with source code. Now, the project has to be rebuilt from scratch. But, they're all there.

    I suppose your best bet is to see if you can contact the previous programmer on the off chance that you can get the original project.

    I end up having to do this a lot since I end up getting quite a few orphaned projects. Sometimes I can download all the files and rebuild from the master. Other's it was compiled without source and I'm hosed.

    Sometimes your the windshield, sometimes your the bug...
  • DHawthorneDHawthorne Posts: 4,584
    I'm not 100% certain of this, but I think that if you don't have the include file in your workspace, it won't get uploaded with the rest of the source to the master.
  • ericmedleyericmedley Posts: 4,177
    DHawthorne wrote: »
    I'm not 100% certain of this, but I think that if you don't have the include file in your workspace, it won't get uploaded with the rest of the source to the master.

    This is indeed the case. only things included in the workspace get sent and are also thus recoverable.
Sign In or Register to comment.