|
2010-07-19
, 17:29
|
Posts: 64 |
Thanked: 13 times |
Joined on Apr 2010
|
#12
|
Could you show us your fixed code? I'm trying to send messages but I haven't been lucky
Thanks
The Following User Says Thank You to waelfarouk0 For This Useful Post: | ||
|
2010-07-21
, 09:11
|
Posts: 64 |
Thanked: 13 times |
Joined on Apr 2010
|
#13
|
Could you show us your fixed code? I'm trying to send messages but I haven't been lucky
Thanks
|
2010-07-21
, 16:54
|
Posts: 4 |
Thanked: 0 times |
Joined on Jul 2010
|
#15
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "gsm.h"
#include "phonelib.h"
main(){
struct _SMS *sm;
sm = malloc(sizeof(SMS) );
memset(sm,0,sizeof(SMS));
char mobile[10];
char message[140];
printf("Mobile Phone: ");
scanf("%s",mobile);
printf("Message: ");
scanf("%s",message);
strcpy(sm->mobile,mobile);
strcpy(sm->message,message);
sendsms(sm);
free(sm);
}
gcc -Wall `pkg-config --cflags dbus-1 glib-2.0 dbus-glib-1` `pkg-config --libs dbus-1 glib-2.0 dbus-glib-1` test_sms.c -o test_sms
In file included from sms.c:4:
gsm.h:41:1: warning: "/*" within comment
In file included from sms.c:5:
phonelib.h:41:1: warning: "/*" within comment
In file included from sms.c:5:
phonelib.h: In function 'sendsms':
phonelib.h:256: warning: unused variable 'error'
sms.c: At top level:
phonelib.h:84: warning: 'logv' defined but not used
/var/tmp/ccscQAUM.o: In function `encode7bituncompressed':
sms.c.text+0xec): undefined reference to `ceil'
collect2: ld returned 1 exit status
|
2010-07-21
, 17:00
|
Posts: 267 |
Thanked: 183 times |
Joined on Jan 2010
@ Campinas, SP, Brazil
|
#16
|
|
2010-07-21
, 17:15
|
Posts: 64 |
Thanked: 13 times |
Joined on Apr 2010
|
#17
|
I'm trying to compile this code with using gsm.h and phonelib.h :
I used this to compile
but I received the following errors and warnings
Does someone knows how can fix it?
Thanks
|
2010-07-21
, 17:16
|
Posts: 64 |
Thanked: 13 times |
Joined on Apr 2010
|
#18
|
What about 7-bit encodings vs. 16-bit encodings and such? Does you app deal with these matters?
|
2010-07-21
, 17:44
|
Posts: 64 |
Thanked: 13 times |
Joined on Apr 2010
|
#19
|
I'm trying to compile this code with using gsm.h and phonelib.h :
I used this to compile
but I received the following errors and warnings
Does someone knows how can fix it?
Thanks
|
2010-07-21
, 17:45
|
Posts: 4 |
Thanked: 0 times |
Joined on Jul 2010
|
#20
|
Thanks