Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Jesus Sanchez
El 11/04/2010 8:37, Jesus Sanchez escribis: i don't think so. Use gdb and see where you are writing to. Based on your description of your a.c and b.c, I assume in a.c you have char foo; (global), and in b.c you by mistake have extern int foo;. If your foo variable is at address, say

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread patrick keshishian
On Sat, Apr 10, 2010 at 11:37 PM, Jesus Sanchez zexe...@gmail.com wrote: i don't think so. Use gdb and see where you are writing to. Based on your description of your a.c and b.c, I assume in a.c you have char foo; (global), and in b.c you by mistake have extern int foo;. If your foo

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Jesus Sanchez
El 11/04/2010 9:06, patrick keshishian escribis: On Sat, Apr 10, 2010 at 11:37 PM, Jesus Sanchezzexe...@gmail.com wrote: i don't think so. Use gdb and see where you are writing to. Based on your description of your a.c and b.c, I assume in a.c you have char foo; (global), and in b.c

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Philip Guenther
On Sat, Apr 10, 2010 at 10:14 PM, Jesus Sanchez zexe...@gmail.com wrote: El 11/04/2010 6:14, Jesus Sanchez escribis: ... Coding some simple stuff in C I ended up having a harmless mistake (I hope) a double-declared variable with different types (char and int for the example) in wich I did

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Jesus Sanchez
El 11/04/2010 9:41, Philip Guenther escribis: On Sat, Apr 10, 2010 at 10:14 PM, Jesus Sanchezzexe...@gmail.com wrote: El 11/04/2010 6:14, Jesus Sanchez escribis: ... Coding some simple stuff in C I ended up having a harmless mistake (I hope) a double-declared variable with

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Michael Small
Philip Guenther guent...@gmail.com writes: ... file a.c contains char foo on the code. and b.c contains int foo on the code. ... It violates a constraint of the C standard for two translation units of a program to have different tentative definitions for a single (necessarily

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-11 Thread Ted Unangst
On Sun, Apr 11, 2010 at 8:47 AM, Michael Small sma...@panix.com wrote: where my wi wireless card stopped working on my old latitude. I noticed an ansification of functions in pccbb.c happening (revision 164) that claimed to make no binary change but actually changed the signature of

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-10 Thread Jesus Sanchez
El 11/04/2010 6:14, Jesus Sanchez escribis: This is not really OpenBSD related but since it's a UNIX-like OS and here are really experienced people coding in C I thought this was a good place to ask. Coding some simple stuff in C I ended up having a harmless mistake (I hope) a

Re: SOLVED OT - C compiler, assignement on double-declared variable with different types

2010-04-10 Thread patrick keshishian
On Sat, Apr 10, 2010 at 10:14 PM, Jesus Sanchez zexe...@gmail.com wrote: El 11/04/2010 6:14, Jesus Sanchez escribis: This is not really OpenBSD related but since it's a UNIX-like OS and here are really experienced people coding in C I thought this was a good place to ask. Coding some