Thanks for your reply, and I know I stuffed up my example, but there's
still some weird (in my mind) things going on here. Have a look
at this ...
## Here's where it goes splat ..
##
[cdev]$ cat a.c
#include
#include
extern void fx (void) ;
extern void fx2 (void) ;
extern int *myglobal ;
int
m
One problem is that 'myglobal' is a pointer to an int, but the int is never defined, and hence, you're assigning a value to a pointer that points no where.
It's very common for things like this to work on one platform, but not another.
On Sat, 2003-02-22 at 00:21, Steve Baldwin wrote:
I'm ha
OK, I think I've solved this by creating export/import libraries.
Thanks
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Steve Baldwin
Sent: Saturday, 22 February 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: Accessing global variables causes segfault
I'm
3 matches
Mail list logo