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
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
> 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
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 -
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]
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];
}
---
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
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
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
[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
10 matches
Mail list logo