JMGross wrote:
Hi Daniel,

signal.h is not a library. It is just an include files that contains some macro 
definitions.

#define eint()  __asm__ __volatile__("eint"::)

which just puts an assembly command into the code flow.

Also the interrupt functions are just defines that allow you to write
interrupt (vector) name (void)

instead of
void __attribute__((interrupt (vector))) name (void)

If you write the long forms yourself in your coude, you can do easily without 
signal.h.
But why should you? It does not add any code by itself. It just makes your code 
more readable and saves you some keystrokes.

But your error messages indicate that you didn't include it in this particular 
code file. Therefore you cannot use its 'shortcuts' such as dint() in this code 
file without an error.

JMGross

----- Ursprüngliche Nachricht -----
Von: Daniel Rabino
An: GCC for MSP430 - http://mspgcc.sf.net
Gesendet am: 11 Jan 2010 21:55:39
Betreff: Re: [Mspgcc-users] mspgcc repository

Bevan Weiss wrote:
Have you #include'd signal.h?

I don't see any reference to the system not being able to find that file,
only that the the dint/eint function declarations can't be found.


#include <signal.h> exists in all the files that need it, I thought that this library is not found because in mspgcc manual by Steve says that is necessary not only for dint/eint but also to process interrups functions, which is the case.



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev _______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Hi JMGross,

I apologize for my mistake, I had not opened the file signal.h and I thought would contain functions calls.

Anyway copying signal.h from the original directory (/ usr/msp430/include) to my project directory errors are gone but these others who may be related to access to the library libc.a appears.

I'm trying this toolchain in Ubuntu 9.1. (Karmic Binaries by Adam Horden )


**** Build of configuration Debug for project CoordinadorZB ****

make -k all
Building file: ../Coord_air.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Coord_air.d" -MT"Coord_air.d" -o"Coord_air.o" "../Coord_air.c"
Finished building: ../Coord_air.c

Building file: ../Coord_app.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Coord_app.d" -MT"Coord_app.d" -o"Coord_app.o" "../Coord_app.c"
Finished building: ../Coord_app.c

Building file: ../Coord_cmd.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Coord_cmd.d" -MT"Coord_cmd.d" -o"Coord_cmd.o" "../Coord_cmd.c"
Finished building: ../Coord_cmd.c

Building file: ../Coord_main.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Coord_main.d" -MT"Coord_main.d" -o"Coord_main.o" "../Coord_main.c"
Finished building: ../Coord_main.c

Building file: ../hal_board.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"hal_board.d" -MT"hal_board.d" -o"hal_board.o" "../hal_board.c"
Finished building: ../hal_board.c

Building file: ../mt.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"mt.d" -MT"mt.d" -o"mt.o" "../mt.c"
Finished building: ../mt.c

Building file: ../sapi.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"sapi.d" -MT"sapi.d" -o"sapi.o" "../sapi.c"
Finished building: ../sapi.c

Building file: ../sapi_cb.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"sapi_cb.d" -MT"sapi_cb.d" -o"sapi_cb.o" "../sapi_cb.c"
Finished building: ../sapi_cb.c

Building file: ../smb.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"smb.d" -MT"smb.d" -o"smb.o" "../smb.c"
Finished building: ../smb.c

Building file: ../spi.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"spi.d" -MT"spi.d" -o"spi.o" "../spi.c"
Finished building: ../spi.c

Building file: ../zaccel.c
Invoking: GCC C Compiler
/usr/bin/msp430-gcc -mmcu=msp430x2370 -imacros Coord.mac -lc -I"/home/daniel/SincronizaW/CoordinadorZB" -I/home/daniel/SincronizaW/CommonFiles -I/usr/lib -I/usr/msp430/lib -I/usr/include -I/usr/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"zaccel.d" -MT"zaccel.d" -o"zaccel.o" "../zaccel.c"
Finished building: ../zaccel.c

Building target: CoordinadorZB
Invoking: GCC C Linker
/usr/bin/msp430-ld -m msp430x2370 -lc -T "msp430x2370M.x" -L/usr/msp430/include -L/usr/lib -L/usr/msp430/lib -o"CoordinadorZB" ./Coord_air.o ./Coord_app.o ./Coord_cmd.o ./Coord_main.o ./hal_board.o ./mt.o ./sapi.o ./sapi_cb.o ./smb.o ./spi.o ./zaccel.o ./Coord_app.o: In function `appZaccelInit': /home/daniel/SincronizaW/CoordinadorZB/Debug/../Coord_app.c:497: undefined reference to `memcpy' /home/daniel/SincronizaW/CoordinadorZB/Debug/../Coord_app.c:569: undefined reference to `strlen'
./Coord_cmd.o: In function `GetEndPointData':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../Coord_cmd.c:302: undefined reference to `memcpy' /home/daniel/SincronizaW/CoordinadorZB/Debug/../Coord_cmd.c:345: undefined reference to `memcpy'
./Coord_cmd.o: In function `GetCommand':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../Coord_cmd.c:486: undefined reference to `strncmp'
./sapi.o: In function `zb_SapiAppRegister':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../sapi.c:131: undefined reference to `memcpy'
./sapi.o: In function `zb_SendDataRequest':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../sapi.c:354: undefined reference to `memcpy'
./sapi.o: In function `zb_WriteConfiguration':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../sapi.c:419: undefined reference to `memcpy'
./sapi.o: In function `zb_FindDeviceRequest':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../sapi.c:459: undefined reference to `memcpy'
./sapi.o: In function `sapiReq':
/home/daniel/SincronizaW/CoordinadorZB/Debug/../sapi.c:515: undefined reference to `memcpy'
make: *** [CoordinadorZB] Error 1
make: Debido a los errores, el objetivo `all' no se reconstruyó.

Regards

--
Ing. Daniel F. Rabino
R&F Ingenieria
T.E. 54-11- 4248-2764
Movil 15-11-4140-1874


Reply via email to