Home > database >  Sharing C files between linux and window
Sharing C files between linux and window

Time:03-29

I'm a C beginner. I have a Windows laptop and a Linux desktop. I want to work on the same project using these two devices, can someone guild me through this situation. I thought about pushing it to the GitHub repository and pulling it later, but I realized they have different build files for Windows and Linux (.vscode, c_pp_properties.json, task.json). I'm not familiar with remote development using SSH either.

CodePudding user response:

Not familiar with vscode but you can maybe use scp or ftp?

CodePudding user response:

  1. Using git is a good idea for sharing code (whether between people or PCs). It will also give you the project history, possibility to track different braches etc.

  2. Even if you don't want to use something like CMake, you could still share the project source code, and have separate folders for the build environments. An example for a files hierarchy (all should be committed to git):

    \src
    \build
        \windows
        \linux
    
  • Related