Do codeblocks c++ coding work with visual studios

Jan 10, 2022 at 5:51am
I am curious that does codeblocks c++ coding works with visual studios or vise versa as both of them used c++ which is the same language.

Last edited on Jan 10, 2022 at 5:53am
Jan 10, 2022 at 6:22am
all standard c++ code will work on all up to date compilers. As long as the code isn't using features not available to the tools, it will work -- for example you can't use c++20 features on a c++ 17 compiler because it didn't exist when the tool was built and won't work.

when you go off into third party libraries like visual's GUI stuff, it may or may not work (or may take a ton of effort to get it to work) on another tool.
Jan 10, 2022 at 7:10am
> both of them used c++ which is the same language.

Standard C++ is the same language; however for complete portability, in addition to adhering to the standard and avoiding undefined behaviour, our code should not explicitly rely on implementation-defined behaviour (eg. sizeof(long double) or the type of std::time_t) or unspecified behaviour ( eg. the specific type of a lambda expression or its closure object).
Last edited on Jan 10, 2022 at 7:10am
Jan 10, 2022 at 11:24am
@jonnin
@JLBorges

Thanks
Topic archived. No new replies allowed.