Hi,

I'm trying to make a dll,
when i compile my appl. for winscw udeb it works fine.
but when i compile(make cmd) it for armi urel in Codewarrior it gives the following errors :

//////////////////////////////////////////////////////////////////////////////////////////
Link Error : STATUS_ACCESS_VIOLATION

(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) Exception trapped!
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) exception C0000005 at 100543BB
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) exception: ax 243FDB8 bx 4010B4 cx 0 dx 4048A1
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) exception: si 0 di 0 bp 243FD94 sp 243FD88
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) exception is: STATUS_ACCESS_VIOLATION
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) Stack trace:
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 0: sp = 0x243F980, pc = 0x1000947D
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 1: sp = 0x243F9B8, pc = 0x77FB172E
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 2: sp = 0x243F9DC, pc = 0x77FB1700
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 3: sp = 0x243FA88, pc = 0x77F75DBA
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 4: sp = 0x243FD94, pc = 0x1004E4BC
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 5: sp = 0x243FDA8, pc = 0x404AB3
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 6: sp = 0x243FDD0, pc = 0x404FCC
(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) End of stack trace
96

Link Error : ax 243FDB8 bx 4010B4 cx 0 dx 4048A1

Link Error : si 0 di 0 bp 243FD94 sp 243FD88

Link Error : STATUS_ACCESS_VIOLATION

Link Error : (C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) frame 0: sp = 0x243F980, pc = 0x1000947D

Link Error : sp = 0x243F9B8, pc = 0x77FB172E

Link Error : sp = 0x243F9DC, pc = 0x77FB1700

Link Error : sp = 0x243FA88, pc = 0x77F75DBA

Link Error : sp = 0x243FD94, pc = 0x1004E4BC

Link Error : sp = 0x243FDA8, pc = 0x404AB3

Link Error : sp = 0x243FDD0, pc = 0x404FCC

Link Error : sp = 0x243FE00, pc = 0x406AFD

Link Error : sp = 0x243FE20, pc = 0x10004410

Link Error : sp = 0x243FF90, pc = 0x10004447

Link Error : sp = 0x243FFA0, pc = 0x43B43A

Link Error : sp = 0x243FFB0, pc = 0x40103A

Link Error : sp = 0x243FFC0, pc = 0x77E8141A

Link Error : sp = 0x243FFF0, pc = 0x0

(C:\Symbian\UIQ_70\EPOC32\gcc\bin\dlltool.exe 1000) End of stack trace
96

Link Error : Link failed



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


The same when compiled from DOS with abld build armi urel works fine, without any error.

Can anyone help me....


Thanx.