Re: [fpc-devel] strange error with arm compiler when compiling-running this code

2007-03-14 Thread Michael Schnell
I have a big project in c,and i wanted to somehow use it in fpc,so i compiled the code with evc(embedded visual c compiler 4.0 of microsoft)and linked it to my pascal code. Why do you think it's possible to link the evc output with something that is not compiled using evc ? What linker is speci

[fpc-devel] Re: strange error with arm compiler when compiling-running this code

2007-03-14 Thread Roozbeh GHolizadeh
the line from .asm file of evc shows this ldr r0, [pc, #0x14] and debugging with evc it is the same.but with fpc and gdb it is ldr r0, [pc, #0x20] so i guess problem is here! Get

[fpc-devel] Re: strange error with arm compiler when compiling-running this code

2007-03-14 Thread Roozbeh GHolizadeh
> Use -Xe, this looks like a known bug of the elf linker with constant > data sections. doing so i recieve sigsegv in setthreadpriority,bt shows this (gdb) bt #0 0x000112ec in SetThreadPriority () #1 0x00011270 in CreateThread () #2 0x00011270 in CreateThread () Previous frame identical to this

Re: [fpc-devel] Re: strange error with arm compiler when compiling-running this code

2007-03-14 Thread Florian Klaempfl
Florian Klaempfl schrieb: > Roozbeh GHolizadeh schrieb: >> well i am really going crazy.these c codes run ok > > > Use -Xe, this looks like a known bug of the elf linker with constant > data sections. Make the elf a coff ;) ___ fpc-devel maillist -

Re: [fpc-devel] Re: strange error with arm compiler when compiling-running this code

2007-03-14 Thread Florian Klaempfl
Roozbeh GHolizadeh schrieb: > well i am really going crazy.these c codes run ok Use -Xe, this looks like a known bug of the elf linker with constant data sections. > ---testpchar.c- > typedef struct > { > char *name; > } > namestruct; > > namestruct namestructs[1]

Re: [fpc-devel] Re: strange error with arm compiler whencompiling-running this code

2007-03-14 Thread Yury Sidorov
From: "Roozbeh GHolizadeh" <[EMAIL PROTECTED]> well i am really going crazy.these c codes run ok ---testpchar.c- typedef struct { char *name; } namestruct; namestruct namestructs[1] = {{"12345"}}; int findname (char *s) { return namestructs[0].name[1]; } ---

[fpc-devel] Re: strange error with arm compiler when compiling-running this code

2007-03-14 Thread Roozbeh GHolizadeh
well i am really going crazy.these c codes run ok ---testpchar.c- typedef struct { char *name; } namestruct; namestruct namestructs[1] = {{"12345"}}; int findname (char *s) { return namestructs[0].name[1]; } main.c-- int main (i

re : [fpc-devel] strange error with arm compiler when compiling-running this code

2007-03-14 Thread Roozbeh GHolizadeh
well i just find out if i move variable namestructs into the function ie making it private to funcion, code will compile ok. so the only thing i can think of is something wrong with code segments/data segments or if we have this thing in arm,like code segment can not be read/write or... anyway reg

[fpc-devel] strange error with arm compiler when compiling-running this code

2007-03-14 Thread Roozbeh GHolizadeh
I have a big project in c,and i wanted to somehow use it in fpc,so i compiled the code with evc(embedded visual c compiler 4.0 of microsoft)and linked it to my pascal code. i dont know why but i just get errors in evc + fpc in arm.bcc32 + delphi and vs.net + fpc both compiles and run ok.(also bcc32

Re: [fpc-devel] Re: Nasm under FPC Go32v2

2007-03-14 Thread Micha Nelissen
[EMAIL PROTECTED] wrote: On Sun, 11 Mar 2007 13:28:35 +0100, Jonas Maebe wrote: How do you reply using your email client ? You break threads (start a new thread every time), which is not good for readability of this list. Two points: 1) You do not have an In-Reply-To header; most email clien