Category : target

I am using visual studio 2019 (C++) for projects on Linux machine. The build fails and give me error: 1>Copying sources remotely to ‘192.168.3.144’ 1>Validating architecture 1>Validating architecture 1>Starting remote build 1>Compiling sources: 1>C:Program Files (x86)Microsoft Visual Studio19ProfessionalMSBuildMicrosoftVCv160Application TypeLinux.0Linux.targets(514,5): error : One or more errors occurred. 1>Done building project "OM.vcxproj" — FAILED.“` But doesn’t show ..

Read more

My problem is that for some reason main.cpp refuses to acknowledge that Ship.cpp exists. If I add in main.cpp #include "Ship.cpp", the code works with no problems. What could be the problem? (IDE is CLion). It has never happened before. When I open ship.cpp, on top it says "this file does not belong to any ..

Read more

I am using cmake to create my static libraries with something along the lines of add_library(library library.cpp) install(TARGETS library DESTINATION lib) which creates liblibrary.a which is what I want. However I would like to bundle that with a library, let’s say vendor/proprietary.a by doing something custom like tmp=$(mktemp -d) cd $tmp ar -x $<TARGET_FILE:library> ar ..

Read more