Skip to content

Trouble building AgamaChemo on Windows with Visual Studio – missing torus sources (.cc vs .cpp) #1

@zhang2023-byte

Description

@zhang2023-byte

Dear Prof. Binney,

I am trying to build the AgamaChemo package on Windows using Visual Studio following the instructions in agama_vs.pdf. However, I encountered the following issues:

When I open agama.sln and try to build the solution, Visual Studio reports multiple errors like:

C1083: Cannot open source file: 'torus\chb.cpp': No such file or directory

Similar errors appear for fit.cpp, orb.cpp, etc.

In the AgamaChemo repository there is no torus folder. I later found another version of Agama (https://github.com/GalacticDynamics-Oxford/Agama) which does include a torus/ directory, but in that version the source files use the extension .cc (e.g., Fit.cc, Orb.cc, Torus.cc) instead of .cpp.

My questions are:

For building AgamaChemo on Windows, should I copy the torus/ directory from the full Agama distribution into the AgamaChemo source tree?

If so, do I need to rename .cc files to .cpp for Visual Studio, or is it sufficient to add the .cc files into the project and force them to compile as C++ (/TP)?

Or is there a different recommended way to link AgamaChemo against an existing build of Agama (with torus) rather than including the torus sources directly?

I would greatly appreciate your advice on the correct procedure for compiling AgamaChemo under Windows with Visual Studio.

Thank you very much for your time and for maintaining Agama!

Best regards,
Will

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions