In addition some people in Open Source have no problems at all to change things for the sake of change even if it means there will be incompatibilities between versions.
How to fix codeblocks compiler windows#
These difficulties are not just caused by Microsoft, which of course doesn't make extra efforts to let other compilers work under Windows, but also by the Open Source community which doesn't feel comfortable with the closed source character of Windows too.
How to fix codeblocks compiler software#
If you got the compiler to finally work you still will have potential problems with the alignment settings to be right and other similar compiler intrinsicacies and once that works you'll end up with C runtime dependency issues, as your DLL will need a specific Gnu C runtime that was used by your compiler environment, that may or may not work on all Windows systems you want to deploy your software to. This is likely a bit more work to figure out right but will ultimately give you better control about making sure that all the necessary conditional compiles are set right.Īll in all DLL programming with anything but Visual C will be always a tinker hell. Since it is only for the LabVIEW header files which have not that many complicated dependencies on compiler and environment settings this might work.Ī better way would be to edit the header files to make them recognize your compiler and environment. The quick and dirty fix would be to define the necessary defines to try to get the header to work as if it was a different compiler. #elif defined(_BORLANDC_) || defined(_BCPLUSPLUS_) || defined(_NI_BC_) #elif defined(_MSC_VER) || defined(_NI_VC_) Here's the part of platdefines.h that causes the error? #if defined(_MWERKS_) Is there anything besides changing my compiler, that I could do about that? My compiler GCC 64-Bit is not part of that list. This, makes sense, because looking at platdefines.h, it is only expecting very few compilers.
![how to fix codeblocks compiler how to fix codeblocks compiler](https://usf-cs212-spring2019.github.io/images/eclipse-java-code-formatter.png)
![how to fix codeblocks compiler how to fix codeblocks compiler](https://www.unixmen.com/wp-content/uploads/2014/01/codeblocks_pass-360x235.png)
The compiler exits with the error: #error "We don't know the Compiler" #include "C:/Program Files/National Instruments/LabVIEW 2018/cintools/extcode.h" I am trying to compile the following piece of Code. This is not really a LabVIEW topic, but I didn't know where else to post, since it occurs when I try to compile a dll with the extcode.h file.