I have a problem with some JNI code.
I'm getting the following error printed in the console from a OS X 10.4.11 (PPC) machine (it works fine on newer versions of OS X 10.5+)
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty
Referenced from: /Path/to/my/lib/libMylib32.jnilib
Expected in: /usr/lib/libobjc.A.dylib
...
Hi, MSVC compiler says that fopen() is deprecated and recommends the use of fopen_s()...
Is there any way to use fopen_s() and still be portable?
Any ideas for a #define?
Thanks.
...
Is there a #pragma to have gcc/Xcode suppress specific warnings, similar to Java's @SuppressWarning annotation?
I compile with -Wall as a rule, but there are some situations where I'd like to just ignore a specific warning (e.g. while writing some quick/dirty code just to help debug something).
I'm not looking for "fix the code" answer...
Is there a list of pragmas supported in Xcode? I only know of #pragma mark. Where would I look to learn about any others?
...
I am currently trying to compile OCMock with GCC4.2 (original: 4.0) and start getting the following warning:
warning: passing argument 1 of
'partialMockForObject:' from distinct
Objective-C type
the calling method is:
- (void)forwardInvocationForRealObject:(NSInvocation *)anInvocation
{
// in here "self" is a reference to ...
What are the difference between the 3 compilers CC, gcc, g++ when compiling
C and C++ code in terms of assembly
code generation, available libraries, language features, etc.?
...
Is it a good idea to vectorize the code? What are good practices in terms of when to do it? What happens underneath?
...
Hello,
I use debian and g++. When compiling i get error-messages like these:
In static member function ΓÇÿstatic void* v4::_mb_blocs::operator new(size_t)ΓÇÖ:
Can i tell gcc to do its output in utf-8 or something ?
...
Hi,
I think that I've looked everywhere for an answer to my problem but without any luck.
I'm trying to create a simple static lib to run on the iPhone device but I keep ending up with XCode saying that "file is not of required architecture" and I've tried every build flag that I found without any luck.
I've got it to work on the emul...
Is there some simple an efficient way to know that a given dynamically linked ELF is missing a required .so for it to run, all from the inside of a C/C++ program?
I need to program a somewhat similar functionality as ldd, without trying to execute the ELF to find out the (met/unmet) dependencies in the system. perhaps asking the ld-linu...
Title basically says it all... does GCC support:
long long int
which would be a 64 bit integer?
Also, is long long int part of the standard? Thanks
...
Hi
I need to enable the hardware watchdog of an msm800 embedded computer.
Unfortunately I hardly know anything about using assembly languages.
This is what the documentation for the device says:
Function: WATCHDOG
Number: EBh
Description:
Enables strobes and disables the
Watchdog. After power-up, the Watchdog
is...
I have a .h file which is used almost throughout the source code (in my case, it is just one directory with. .cc and .h files). Basically, I keep two versions of .h file: one with some debugging info for code analysis and the regular one. The debugging version has only one extra macro and extern function declaration. I switch pretty re...
extern void MyInitFunc(void) __attribute__ ((constructor));
extern void MyTermFunc(void) __attribute__ ((destructor));
void MyInitFunc(void)
{
printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n");
}
void MyTermFunc(void)
{
}
I put this in a .c file which is present in the main application (not a library or framework). It doesn't get ...
Is there a cross platform way to selectively export certain functions and structs from a C project which builds a shared library?
I want to do in a way that does not require a specific build system (the visibility should be defined in the code, eg as a macro), and in a way which both GCC and MSVC can understand.
Thank you.
...
Just came across this guy that left me stunned:
gcc -E -dM - </dev/null
This part is confusing to me:
- </dev/null
...
Hello,
What are the specific options I would need to build in "release mode" with full optimizations in GCC? If there are more than one option, please list them all. Thanks.
...
Cheers,
at company, we're creating a port of our games, and we need to compile PythonOgre, a wrapper of Ogre3d for Python. This is an enormous chunk of code, particularly the generated wrapper code. We have a Mac Mini with 1GB RAM.
We've built i386 version. Since we have only 1GB of RAM, we've forced the build system to use only one co...
After upgrading to snow leopard it turn out that i am unable to use gcc on terminal anymore, and its mainly because it has lose its link in /usr/bin/.
What should i do to make it work again?
[After installing Xcode 3.2, everything went to normal, terminal was accepting gcc command, but i have to shutdown once, because netbeans was not ...
For some compilers, there is a packing specifier for structs, for example ::
RealView ARM compiler has "__packed"
Gnu C Compiler has "__attribute__ ((__packed__))"
Visual C++ has no equivalent, it only has the "#pragma pack(1)"
I need something that I can put into the struct definition.
Any info/hack/suggestion ? TIA...
...