14

Guess I'll fuckin try again tomorrow.

Building a cross platform c program. On Linux side, just using a makefile. Today I tried using visual studios "clone" feature for git. It just downloads the files and makes them available to the editor, it doesn't make a project, obviously.

But this has some disadvantages. For one, you can't build, or run. Two, you don't get any project properties. My project needs to set the character encoding to Unicode. Can't do that without a project.

So I use their tool to create a project from existing code. It didn't really work. The build profiles were janky at best and I still couldn't set the character encoding.

Ended up just deleting the whole thing.

Comments
  • 3
    Install a separate compiler and use VS only for editing.

    There are a few available.

    VS projects is not the usual standard for cross platform c.

    So just go with existing makefile instead of trying to convert to a project.

    Since the make file can contain scripts, its all but impossible to make a reliable converter, especially for cross platform which might contain a lot of discovery logic to find local variations.
  • 0
    Most cross-platform programs i saw used cmake.
  • 0
    @stop
    But using cmake only shows how much of a terrible person you are.
  • 0
    @metamourge i never used it as an programer, i only used it to build.
Add Comment