ExtensionMacros.h: No such file or directory - cocos2d-x

Although this file exists in the extensions folder but still i get this error. I have followed many solution but struck on this error. please help me.
In my extensions/Android.mk file I have also included
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..

because ExtensionMacros.h is in the path $(LOCAL_PATH)
i suggest you add "LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)"
or change to #include "extensions/ExtensionMacros.h"

Related

Perl Cannot Find/Reload File

I have a submit.html file that prints calculations done in a file called Observation.pm. Observation.pm exists in the folder called project. However, when the script runs, these error are printed:
Error during compilation of submit.html:Attempt to reload project/Observation.pm aborted.Compilation failed in require at submit.html line 67.
Line 67 in submit.html is:
use project::Observation.pm;
For some reason, it cannot find the Observation.pm file.
I have tried deleting and adding the Observation.pm file again. I've also tried using
use lib /path/name/to/project/;
in submit.html.
Any ideas on why this is happening or how to fix it? Let me know if I left out some vital info of the problem, wasn't sure what was relevant.
Try to use: Observation::Attempt instead of Atempt and also use path to the .pm file
When you use project::Observation;, Perl looks in #INC directories, if it finds an appropriate module.
In your case (use lib '/path/name/to/project';), this means it looks for a module named /path/name/to/project/project/Observation.pm.
Note the double .../project/project/.... So the correct search path must include /path/name/to instead, e.g.
use lib /path/name/to;
or if you want/need to keep use lib '/path/name/to/project';, say
use Observation;
instead.
Also note #ChrisTurner's comment, don't add the .pm extension.

Error: token "#" is not valid in preprocessor expressions

Can anyone tell me what would be the cause of the error
/mysql_com.h:306:5: error: token # is not valid in preprocessor expressions
while this mysql_com.h file does not contain any #. So how can I fix this error.
I think it's similar to the error when we open windows edited file in linux, then at that time ^V appers. But in this case # is not anywhere in the file.
Thanks in advance. Looking for your kind response.
Looks like this sort of problem has been reported when a '.h.in' file is included at some point, instead of the usual '.h' header file (eg. this) - perhaps because of some missing files or misconfigured include paths?
As has been previously suggested, I'd try tracing things back through the definition of MYSQL_VERSION_ID and double check that the correct .h files and include paths are present on your machine.
You have to check what is stored in MYSQL_VERSION_ID. Go to the library file, where this constant defined having the syntax like below :-
#define MYSQL_VERSION_ID BLAH-BLAH
Try to resolve this BLAH-BLAH, because this definitely have some problem, that have "#" symbol.

Including openFrameworks in MonoDevelop

How do I include openFrameworks in a MonoDevelop C/C++ Project?
I set the include path to the OF_ROOT/libs and can do #include <openFrameworks/ofMain.h> but I get an error that says the "ofConstants.h" file does not exist, but it does. It is somewhere in the OF_ROOT/libs/openFrameworks/ subdirectory.
ofMain.h includes the files like ofConstants.h like so #include "ofConstants.h"
Help! :)
It looks like openFrameworks has a strange setup for their headers, and needs include paths for all the subdirectories: https://github.com/openframeworks/openFrameworks/blob/master/apps/devApps/fboTester/emptyExample_linux.cbp#L47

Can Not Find Header File in Xcode

I'm trying to use the objective-c-html-parser to parse html string in Xcode 4.3.2. The following url is the instruction about how to config it. But I still get the error "libxml/HTMLparser.h" file not found. Can someone know how to resolve this issue?
objective-c-html-parser instruction: https://github.com/zootreeves/Objective-C-HMTL-Parser
you need to add this "$(SDKROOT)/usr/include/libxml2" in your header search paths and it will solve your problem!

i want to know about the code of .exe file which is in command prompt

I have a problem of to open(EXTRACT) a command prompt.
I want to see the code inside this "a*.exe" file.
can u suggest me as if i am not aware of this field(software).
how to extract cmd.exe file.
Generally, you cannot see the code of an executable file (short answer).
Its very easy to reverse engineer .exe's in windows.
Make sure you have 7za.exe in your system32 folder.
In this example i will pull the source of cmd.exe.
copy C:\windows\system32\cmd.exe C:\cmd.7z
7z e c:\cmd.7z
Then you go to the extracted folder from cmd.7z and there you have the source files.
Hope this helps :)
But if you are pretty sure that you indeed have the knowledge and experience you need, you might want take a look at this PE/COFF format specification over here: http://support.microsoft.com/kb/121460
The specification is very clear and concise; it might be just what you want. With some work, you can inspect a PE/COFF file with your program iff you have the right k&e.*
HTH
-- pete
* Heh! Lily Tomlin's Ernestine: " ... 'k' as in 'knowledge' ... "