Missing header file sal.h when calling mpi.h header file - mpi

I am using code block IDE to develop the mpi code but when I am compiling the code it is showing
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\mpi.h|54|fatal error: sal.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Please can anyone help me how to fix this error.

Please refer to How do I get sal.h for how to get sal.h.
That being said, from mpi.h :
#ifndef MSMPI_NO_SAL
#include <sal.h>
#endif
So you might want to define the MSMPI_NO_SAL macro and see if this workaround is good enough.

Related

Compile error in Arduino IDE using Mozzi library

I'm using the Mozzi lib (http://sensorium.github.io/Mozzi/) as part of a tutorial (http://www.echanter.com/home/howto-build#TOC-Arduino-IDE). I included the Mozzi in Arduino Studio and followed minor configs in the tutorial. I've looked around the lines that are reported, but I'm stumped. Compile error is:
Mozzi/mozzi_fixmath.cpp.o: In function isqrt16(unsigned int)': /home/temp/sketchbook/libraries/Mozzi/mozzi_fixmath.cpp:156: multiple definition of isqrt32(unsigned long)'
echanter.cpp.o:/home/temp/sketchbook/libraries/Mozzi/Sample.h:61: first defined here
collect2: error: ld returned 1 exit status
In the root dir are two files with isqrt16(unsigned int) defined: mozzi_fixmath.cpp and mozzi_fixmath.h. I commented out the definition in the cpp file and it compiled.

QLoggingCategory is missing in Qt

Trying to build project on newly installed Qt that runs on Centos 64 bit. Got error:
/home/me/pro/LoggingCategories.h:4: error: QLoggingCategory.h: No such file or directory
#include <QLoggingCategory.h>
^
Why it is missing? I suppose it should be installed as default. How to fix error?
UPD
Got the same error after changing #include <QLoggingCategory.h> to #include <QLoggingCategory>
/home/me/pro/LoggingCategories.h:4: error: QLoggingCategory: No such file or directory
#include <QLoggingCategory>
^

"#include <avr/eeprom.h>" in Arduino-IDE?

After a long time I tried to get back in Arduino Programming. But with my old code I get the following error:
fatal error: avr/eeprom.h: No such file or directory
#include <avr/eeprom.h>
^
compilation terminated.
exit status 1
So why doesn't he find the avr library. Do I need to install it manually? And where can I find a download of it?
The <avr/eeprom.h> is available only for the AVR architecture. It's not possible to use it on other MCU architectures.
And ESP8266 is definitely completely different MCU architecture.

Appcelerator - include jar in build at compile-time?

Since Appcelerator(/Hyperloop) doesn't use Gradle or Maven to manage dependencies, I need to include them all manually for my project by placing them in the app/platform/android folder. I have done this, however I also need to include google dagger (https://github.com/google/dagger) which requires including dagger-compiler-2.x.jar , which I believe is an annotation processor that generates some type of code during compile-time.
Simply placing this in the app/platform/android folder like any other jar results in this error when the dexer is running during the build:
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : PARSE ERROR:
[ERROR] : MethodHandle not supported
[ERROR] : ...while preparsing cst 016c at offset 00001ceb
[ERROR] : ...while parsing com/google/googlejavaformat/java/JavaInput.class
[ERROR] : 1 error; aborting
I think it has something to do with the part of the dagger instructions which state "you will need to include dagger-compiler-2.x.jar in your build at compile time." Is there somewhere else that I need to place this jar file to get it to be used properly? Or is the use of compile-time annotation processors not something that Appcelerator/Hyperloop supports at this time? Any thoughts or insight would be greatly appreciated.
A good amount has changed since this question was asked. This being said, I believe that currently Hyperloop for Android doesn't handle annotations. And this is how dependency injection systems work, so I believe it's still not currently possible to use that or similar JARs.

Qmake build and gcc includes

I am working with Qt and kinda new to it. I want to build a Qt application and created devprog.pro file. However, after executing qmake and make I get the error
c:\qt473\include\qtcore../../src/corelib/global/qglobal.h(45)
: fatal error C10 83: Cannot open
include file: 'stddef.h': No such file
or directory
So I specified the gcc 4.4.1 include location and the error messages (amongst others) I get is:
c:\codeblocks\MinGW\lib\gcc\mingw32\4.4.1\include\stddef.h(211)
: error C2371: ' size_t' :
redefinition; different basic types
predefined C++ types (compiler internal)(19) : see declaration of
'size_ t'
C:\CodeBlocks\MinGW\include\string.h(126)
: error C2143: syntax error : missing
';' before '*'
C:\CodeBlocks\MinGW\include\string.h(126)
: error C4430: missing type specifier
- int assumed. Note: C++ does not support default-int
My question is:
1. How can resolve such error problems as I've scratched my hair off trying to solve this.
2. Is there a way to make automatically let qmake detect your main gcc mingw location without having to set it for each project during qmake execution?

Resources