opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-gnustep@gnu.org 30 March 2012 • 1:49AM -0400

Debian ARM system-Can't find headers when compiling
by Brian Young

REPLY TO AUTHOR
 
REPLY TO GROUP





I've been setting up GNUstep on my Debian 2.6 linux ARM system. (GuruPlug)
BUT, I can't compile anything because my system is complaining that it can't
find the foundation and other header files.


####################### This is my setup ###################

I installed using the following commands:
% apt-get install clang
% apt-get install gnustep gnustep-devel gnustep-games

Then I
http://blog.vucica.net/2010/12/getting-objective-c-2-0-to-work-on-debians-gnustep-with-clang.html
followed these directions  to change a few setting is the following make
file:  /usr/share/GNUstep/Makefiles/config.make
  CC       = clang
  OBJCFLAGS= -I/usr/lib/gcc/arm-linux-gnueabi/4.4.5/include
  CPP      = clang -E

I then setup my shell environment:
% source /usr/share/GNUstep/Makefiles/GNUstep.sh

BUT, when I try to compile the simplest of programs, I get a fatal error
that it can't find the Foundation header file:

% clang -fobjc-arc -framework Foundation main.m -o prog1
  clang: warning: unknown platform, assuming -mfloat-abi=soft
  main.m:11:9: fatal error: 'Foundation/Foundation.h' file not found
  #import <Foundation/Foundation.h>
          ^
  1 diagnostic generated.

Can someone help me figure out how to setup my system so it looks for the
header files in the correct place? (/usr/include/GNUstep/)

Thank you!!!





############### The simple code in main.m  #################


#import <Foundation/Foundation.h>
#import <stdio.h>

int main (int argc, const char * argv[])
{

    @autoreleasepool {
        
        
        float Celsius;
        float Fahrenheit = 100;
        
        Celsius = (Fahrenheit - 32) / 1.8 ;
        
        NSLog(@"Fahrenheit: %i\n is equal to\nCelsius: %i", (int)
Fahrenheit, (int) Celsius);
        
       printf ("Fahrenheit: %f is equal to %f Celsius.\n", Fahrenheit,
Celsius);
        
    }
    return 0;
}

--
View this message in context: http://old.nabble.com/Debian-ARM-system-Can%27t-find-headers-when-compiling-tp33544884p33544884.html
Sent from the GNUstep - Help mailing list archive at Nabble.com.


_______________________________________________
Help-gnustep mailing list
Help-gnustep@gnu....
https://lists.gnu.org/mailman/listinfo/help-gnustep

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.