linker error: undefined reference to '_RtlUnwind@16'

  • Follow


I just installed and tried compiling/linking a basic "hello world"
program. When I run the linker I get this error:

lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'

The resulting hello.exe seems to work, but if I try linking for a dll
output, the dll is not even generated.

Any ideas?

Here are my complete steps:

>cat hello.c
#include <stdio.h>

int main(void) {
printf("hello\n");
}

>lcc hello.c

>lcclnk hello.obj
c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'

>lcc -v
Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
2004 12:00:09

>lcclnk -v
lcclnk version 1.3

Thanks,
Lucien

0
Reply lgielgud (1) 12/9/2004 9:25:44 PM

lgielgud wrote:
> I just installed and tried compiling/linking a basic "hello world"
> program. When I run the linker I get this error:
> 
> lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
> 
> The resulting hello.exe seems to work, but if I try linking for a dll
> output, the dll is not even generated.
> 
> Any ideas?
> 
> Here are my complete steps:
> 
> 
>>cat hello.c
> 
> #include <stdio.h>
> 
> int main(void) {
> printf("hello\n");
> }
> 
> 
>>lcc hello.c
> 
> 
>>lcclnk hello.obj
> 
> c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
> 
> 
>>lcc -v
> 
> Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
> 2004 12:00:09
> 
> 
>>lcclnk -v
> 
> lcclnk version 1.3
> 
> Thanks,
> Lucien
> 

???

I can't understand this. RtlUnwind is defined in kernel32.lib
I think there is something wrong in the download, maybe the
distribution is corrupt?

Has anyone else experienced this problem?

jacob
0
Reply jacob 12/9/2004 10:14:00 PM


Should have tested this before posting - but it works fine on another
computer and an older version of lcc doesn't work on this computer.
Must be a problem on my end.

Sorry for a wasted post. Jacob - thank you very much for the reply and
especially for this great program!

Thanks,
Lucien

jacob navia wrote:
> lgielgud wrote:
> > I just installed and tried compiling/linking a basic "hello world"
> > program. When I run the linker I get this error:
> >
> > lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
> >
> > The resulting hello.exe seems to work, but if I try linking for a
dll
> > output, the dll is not even generated.
> >
> > Any ideas?
> >
> > Here are my complete steps:
> >
> >
> >>cat hello.c
> >
> > #include <stdio.h>
> >
> > int main(void) {
> > printf("hello\n");
> > }
> >
> >
> >>lcc hello.c
> >
> >
> >>lcclnk hello.obj
> >
> > c:\lcc\lib\lcccrt0.obj .text: undefined reference to
'_RtlUnwind@16'
> >
> >
> >>lcc -v
> >
> > Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov
17
> > 2004 12:00:09
> >
> >
> >>lcclnk -v
> >
> > lcclnk version 1.3
> >
> > Thanks,
> > Lucien
> >
>
> ???
>
> I can't understand this. RtlUnwind is defined in kernel32.lib
> I think there is something wrong in the download, maybe the
> distribution is corrupt?
> 
> Has anyone else experienced this problem?
> 
> jacob

0
Reply lgielgud 12/10/2004 6:56:46 PM

"jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
news:41b8ce27$0$8132$8fcfb975@news.wanadoo.fr...
> lgielgud wrote:
>> I just installed and tried compiling/linking a basic "hello world"
>> program. When I run the linker I get this error:
>>
>> lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>
>> The resulting hello.exe seems to work, but if I try linking for a dll
>> output, the dll is not even generated.
>>
>> Any ideas?
>>
>> Here are my complete steps:
>>
>>
>>>cat hello.c
>>
>> #include <stdio.h>
>>
>> int main(void) {
>> printf("hello\n");
>> }
>>
>>
>>>lcc hello.c
>>
>>
>>>lcclnk hello.obj
>>
>> c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>
>>
>>>lcc -v
>>
>> Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
>> 2004 12:00:09
>>
>>
>>>lcclnk -v
>>
>> lcclnk version 1.3
>>
>> Thanks,
>> Lucien
>>
>
> ???
>
> I can't understand this. RtlUnwind is defined in kernel32.lib
> I think there is something wrong in the download, maybe the
> distribution is corrupt?
>
> Has anyone else experienced this problem?
>
> jacob


Me too. After a new install, version 3.3, I create a new project using the 
skeleton, and the linker produces the follwing output:

Wedit output window build: Wed Dec 15 21:46:45 2004
c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
'_RtlUnwind@16'
c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_signal'
c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_raise'
c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
'__GetMainArgs'
c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_exit'
Error g:\dummy\dummy.c 36 undefined reference to _SendMessageA@16
Error g:\dummy\dummy.c 81 undefined reference to _LoadStringA@16
Error g:\dummy\dummy.c 108 undefined reference to _GetDC@4
Error g:\dummy\dummy.c 109 undefined reference to _GetClientRect@8
Error g:\dummy\dummy.c 115 undefined reference to _ReleaseDC@8
Error g:\dummy\dummy.c 159 undefined reference to _memset
Error g:\dummy\dummy.c 166 undefined reference to _LoadCursorA@8
Error g:\dummy\dummy.c 167 undefined reference to _LoadIconA@8
Error g:\dummy\dummy.c 168 undefined reference to _RegisterClassA@4
Error g:\dummy\dummy.c 180 undefined reference to _CreateWindowExA@48
Error g:\dummy\dummy.c 197 undefined reference to _PostMessageA@16
Error g:\dummy\dummy.c 218 undefined reference to _PostQuitMessage@4
Error g:\dummy\dummy.c 221 undefined reference to _DefWindowProcA@16
Error g:\dummy\dummy.c 237 undefined reference to _LoadAcceleratorsA@8
Error g:\dummy\dummy.c 241 undefined reference to _ShowWindow@8
Error g:\dummy\dummy.c 243 undefined reference to _TranslateAcceleratorA@12
Error g:\dummy\dummy.c 244 undefined reference to _TranslateMessage@4
Error g:\dummy\dummy.c 245 undefined reference to _DispatchMessageA@4
Error g:\dummy\dummy.c 242 undefined reference to _GetMessageA@16
defaulttrap.obj .text: undefined reference to '_itoa'
defaulttrap.obj .text: undefined reference to '_strcat'
defaulttrap.obj .text: undefined reference to '_MessageBoxA@16'
defaulttrap.obj .text: undefined reference to '_abort'
main.obj .text: undefined reference to '_GetCommandLineA@0'
main.obj .text: undefined reference to '_strchr'
main.obj .text: undefined reference to '_GetModuleHandleA@4'
Compilation + link time:0.2 sec, Return code: 36

And suggests to add the libraries, I select OK, and I see that these two 
libraries: crtdll.lib and user32.lib are added. However, the next Make 
yields the same results.

I am stuck.
Nico 


0
Reply Nico 12/15/2004 8:52:32 PM

Nico Witteman wrote:
> "jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
> news:41b8ce27$0$8132$8fcfb975@news.wanadoo.fr...
> 
>>lgielgud wrote:
>>
>>>I just installed and tried compiling/linking a basic "hello world"
>>>program. When I run the linker I get this error:
>>>
>>>lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>
>>>The resulting hello.exe seems to work, but if I try linking for a dll
>>>output, the dll is not even generated.
>>>
>>>Any ideas?
>>>
>>>Here are my complete steps:
>>>
>>>
>>>
>>>>cat hello.c
>>>
>>>#include <stdio.h>
>>>
>>>int main(void) {
>>>printf("hello\n");
>>>}
>>>
>>>
>>>
>>>>lcc hello.c
>>>
>>>
>>>>lcclnk hello.obj
>>>
>>>c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>
>>>
>>>
>>>>lcc -v
>>>
>>>Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
>>>2004 12:00:09
>>>
>>>
>>>
>>>>lcclnk -v
>>>
>>>lcclnk version 1.3
>>>
>>>Thanks,
>>>Lucien
>>>
>>
>>???
>>
>>I can't understand this. RtlUnwind is defined in kernel32.lib
>>I think there is something wrong in the download, maybe the
>>distribution is corrupt?
>>
>>Has anyone else experienced this problem?
>>
>>jacob
> 
> 
> 
> Me too. After a new install, version 3.3, I create a new project using the 
> skeleton, and the linker produces the follwing output:
> 
> Wedit output window build: Wed Dec 15 21:46:45 2004
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
> '_RtlUnwind@16'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_signal'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_raise'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
> '__GetMainArgs'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_exit'
> Error g:\dummy\dummy.c 36 undefined reference to _SendMessageA@16
> Error g:\dummy\dummy.c 81 undefined reference to _LoadStringA@16
> Error g:\dummy\dummy.c 108 undefined reference to _GetDC@4
> Error g:\dummy\dummy.c 109 undefined reference to _GetClientRect@8
> Error g:\dummy\dummy.c 115 undefined reference to _ReleaseDC@8
> Error g:\dummy\dummy.c 159 undefined reference to _memset
> Error g:\dummy\dummy.c 166 undefined reference to _LoadCursorA@8
> Error g:\dummy\dummy.c 167 undefined reference to _LoadIconA@8
> Error g:\dummy\dummy.c 168 undefined reference to _RegisterClassA@4
> Error g:\dummy\dummy.c 180 undefined reference to _CreateWindowExA@48
> Error g:\dummy\dummy.c 197 undefined reference to _PostMessageA@16
> Error g:\dummy\dummy.c 218 undefined reference to _PostQuitMessage@4
> Error g:\dummy\dummy.c 221 undefined reference to _DefWindowProcA@16
> Error g:\dummy\dummy.c 237 undefined reference to _LoadAcceleratorsA@8
> Error g:\dummy\dummy.c 241 undefined reference to _ShowWindow@8
> Error g:\dummy\dummy.c 243 undefined reference to _TranslateAcceleratorA@12
> Error g:\dummy\dummy.c 244 undefined reference to _TranslateMessage@4
> Error g:\dummy\dummy.c 245 undefined reference to _DispatchMessageA@4
> Error g:\dummy\dummy.c 242 undefined reference to _GetMessageA@16
> defaulttrap.obj .text: undefined reference to '_itoa'
> defaulttrap.obj .text: undefined reference to '_strcat'
> defaulttrap.obj .text: undefined reference to '_MessageBoxA@16'
> defaulttrap.obj .text: undefined reference to '_abort'
> main.obj .text: undefined reference to '_GetCommandLineA@0'
> main.obj .text: undefined reference to '_strchr'
> main.obj .text: undefined reference to '_GetModuleHandleA@4'
> Compilation + link time:0.2 sec, Return code: 36
> 
> And suggests to add the libraries, I select OK, and I see that these two 
> libraries: crtdll.lib and user32.lib are added. However, the next Make 
> yields the same results.
> 
> I am stuck.
> Nico 
> 
> 
Well, the linker finds absolutely no libraries.

1. Look at the value of the registry key
HKEY_CURRENT_USER\Software\lcc\linker

what path does it contain?

dir \lcc\lib

Are all the libraries there???

jacob
0
Reply jacob 12/15/2004 9:26:58 PM

"Nico Witteman" <n.witteman.nospam@chello.nl> schreef in bericht 
news:ku1wd.97854$lN.2132@amsnews05.chello.com...
>
> "jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
> news:41b8ce27$0$8132$8fcfb975@news.wanadoo.fr...
>> lgielgud wrote:
>>> I just installed and tried compiling/linking a basic "hello world"
>>> program. When I run the linker I get this error:
>>>
>>> lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>
>>> The resulting hello.exe seems to work, but if I try linking for a dll
>>> output, the dll is not even generated.
>>>
>>> Any ideas?
>>>
>>> Here are my complete steps:
>>>
>>>
>>>>cat hello.c
>>>
>>> #include <stdio.h>
>>>
>>> int main(void) {
>>> printf("hello\n");
>>> }
>>>
>>>
>>>>lcc hello.c
>>>
>>>
>>>>lcclnk hello.obj
>>>
>>> c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>
>>>
>>>>lcc -v
>>>
>>> Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
>>> 2004 12:00:09
>>>
>>>
>>>>lcclnk -v
>>>
>>> lcclnk version 1.3
>>>
>>> Thanks,
>>> Lucien
>>>
>>
>> ???
>>
>> I can't understand this. RtlUnwind is defined in kernel32.lib
>> I think there is something wrong in the download, maybe the
>> distribution is corrupt?
>>
>> Has anyone else experienced this problem?
>>
>> jacob
>
>
> Me too. After a new install, version 3.3, I create a new project using the 
> skeleton, and the linker produces the follwing output:
>
> Wedit output window build: Wed Dec 15 21:46:45 2004
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
> '_RtlUnwind@16'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_signal'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_raise'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
> '__GetMainArgs'
> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_exit'
> Error g:\dummy\dummy.c 36 undefined reference to _SendMessageA@16
> Error g:\dummy\dummy.c 81 undefined reference to _LoadStringA@16
> Error g:\dummy\dummy.c 108 undefined reference to _GetDC@4
> Error g:\dummy\dummy.c 109 undefined reference to _GetClientRect@8
> Error g:\dummy\dummy.c 115 undefined reference to _ReleaseDC@8
> Error g:\dummy\dummy.c 159 undefined reference to _memset
> Error g:\dummy\dummy.c 166 undefined reference to _LoadCursorA@8
> Error g:\dummy\dummy.c 167 undefined reference to _LoadIconA@8
> Error g:\dummy\dummy.c 168 undefined reference to _RegisterClassA@4
> Error g:\dummy\dummy.c 180 undefined reference to _CreateWindowExA@48
> Error g:\dummy\dummy.c 197 undefined reference to _PostMessageA@16
> Error g:\dummy\dummy.c 218 undefined reference to _PostQuitMessage@4
> Error g:\dummy\dummy.c 221 undefined reference to _DefWindowProcA@16
> Error g:\dummy\dummy.c 237 undefined reference to _LoadAcceleratorsA@8
> Error g:\dummy\dummy.c 241 undefined reference to _ShowWindow@8
> Error g:\dummy\dummy.c 243 undefined reference to 
> _TranslateAcceleratorA@12
> Error g:\dummy\dummy.c 244 undefined reference to _TranslateMessage@4
> Error g:\dummy\dummy.c 245 undefined reference to _DispatchMessageA@4
> Error g:\dummy\dummy.c 242 undefined reference to _GetMessageA@16
> defaulttrap.obj .text: undefined reference to '_itoa'
> defaulttrap.obj .text: undefined reference to '_strcat'
> defaulttrap.obj .text: undefined reference to '_MessageBoxA@16'
> defaulttrap.obj .text: undefined reference to '_abort'
> main.obj .text: undefined reference to '_GetCommandLineA@0'
> main.obj .text: undefined reference to '_strchr'
> main.obj .text: undefined reference to '_GetModuleHandleA@4'
> Compilation + link time:0.2 sec, Return code: 36
>
> And suggests to add the libraries, I select OK, and I see that these two 
> libraries: crtdll.lib and user32.lib are added. However, the next Make 
> yields the same results.
>
> I am stuck.
> Nico
>

Trying to build the libraries from the command line gives this result:
C:\Compiler\lcc\buildlib>...\bin\make
    buildlib lcclibc.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib advapi32.exp
Can't create the output file tmp$$$.obj    buildlib netapi32.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib lz32.exp
Can't create the output file tmp$$$.obj    buildlib comctl32.exp
Can't create the output file tmp$$$.obj    buildlib comdlg32.exp
Can't create the output file tmp$$$.obj    buildlib crtdll.exp
Can't create the output file tmp$$$.obj    buildlib gdi32.exp
Can't create the output file tmp$$$.obj    buildlib opengl.exp
Can't create the output file tmp$$$.obj    buildlib opengl32.exp
Can't create the output file tmp$$$.obj    buildlib webpost.exp
Can't create the output file tmp$$$.obj    buildlib wininet.exp
Can't create the output file tmp$$$.obj    buildlib winspool.exp
Writing library for WINSPOOL.DRV
Can't create the output file tmp$$$.obj    buildlib kernel32.exp
Can't create the output file tmp$$$.obj    buildlib pkdp32.exp
Can't create the output file tmp$$$.obj    buildlib lsapi32.exp
Can't create the output file tmp$$$.obj    buildlib mslsp32.exp
    buildlib user32.exp
Can't create the output file tmp$$$.obj    buildlib ddraw.exp
    buildlib wsock32.exp
    buildlib snmp32.exp
Can't create the output file tmp$$$.obj    buildlib snmpapi.exp
Can't create the output file tmp$$$.obj    buildlib msvcrt.exp
Can't create the output file tmp$$$.obj    buildlib msvcrtd.exp
Can't create the output file tmp$$$.obj    buildlib glu32.exp
Can't create the output file tmp$$$.obj    buildlib winmm.exp
Can't create the output file tmp$$$.obj    buildlib rasapi32.exp
    buildlib version.exp
Can't create the output file tmp$$$.obj    buildlib dlcapi.exp
    buildlib tapi32.exp
Can't create the output file tmp$$$.obj    buildlib loadperf.exp
    buildlib wow32.exp
Can't create the output file tmp$$$.obj    buildlib ole32.exp
Can't create the output file tmp$$$.obj    buildlib imagehlp.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib olepro32.exp
Can't create the output file tmp$$$.obj    buildlib wintrust.exp
    buildlib setupapi.exp
Can't create the output file tmp$$$.obj    buildlib penwin32.exp
    buildlib ctl3d32.exp
Can't create the output file tmp$$$.obj    buildlib mapi32.exp
Can't create the output file tmp$$$.obj    buildlib mpr.exp
Can't create the output file tmp$$$.obj    buildlib d3drm.exp
Can't create the output file tmp$$$.obj    buildlib dsound.exp
    buildlib dplay.exp
    buildlib url.exp
Can't create the output file tmp$$$.obj    buildlib urlmon.exp
Can't create the output file tmp$$$.obj    buildlib pdh.exp
Can't create the output file tmp$$$.obj    buildlib mswsock.exp
Can't create the output file tmp$$$.obj    buildlib ws2_32.exp
    buildlib msacm32.exp
Can't create the output file tmp$$$.obj    buildlib odbc32.exp
Can't create the output file tmp$$$.obj    buildlib imm32.exp
Can't create the output file tmp$$$.obj    buildlib odbccp32.exp
Can't create the output file tmp$$$.obj    buildlib rasdlg.exp
Can't create the output file tmp$$$.obj    buildlib rpcrt4.exp
Can't create the output file tmp$$$.obj    buildlib rpcns4.exp
Can't create the output file tmp$$$.obj    buildlib rassapi.exp
    buildlib svrapi.exp
    buildlib wst.exp
    buildlib win32spl.exp
    buildlib dflayout.exp
    buildlib oleaut32.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib crypt32.exp
    buildlib rtm.exp
    buildlib msvfw32.exp
Can't create the output file tmp$$$.obj    buildlib msi.exp
Can't create the output file tmp$$$.obj    buildlib riched20.exp
Can't create the output file tmp$$$.obj    buildlib activeds.exp
    buildlib aclui.exp
    buildlib iphlpapi.exp
Can't create the output file tmp$$$.obj    buildlib mprapi.exp
Can't create the output file tmp$$$.obj    buildlib dapi.exp
    buildlib mscms.exp
Can't create the output file tmp$$$.obj    buildlib oledlg.exp
    buildlib bdnapi.exp
Can't create the output file tmp$$$.obj    buildlib ntmsapi.exp
    buildlib nal.exp
    buildlib icmui.exp
Can't create the output file tmp$$$.obj    buildlib dinput.exp
Can't create the output file tmp$$$.obj    buildlib d3dxof.exp
    buildlib d3dim.exp
    buildlib dsetup.exp
    buildlib dplayx.exp
    buildlib edbbcli.exp
    buildlib userenv.exp
Can't create the output file tmp$$$.obj    buildlib secur32.exp
Can't create the output file tmp$$$.obj    buildlib shfolder.exp
    buildlib shlwapi.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib glut32.exp
    buildlib hlink.exp
    buildlib iprop.exp
    buildlib resutils.exp
Can't create the output file tmp$$$.obj    buildlib shell32.exp
Can't create the output file tmp$$$.obj    buildlib dynloader.exp
Can't create the output file tmp$$$.obj    buildlib gc.exp
Can't create the output file tmp$$$.obj    buildlib winfax.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib bignums.exp
Can't create the output file tmp$$$.obj    buildlib mgmtapi.exp
    buildlib psapi.exp
Can't create the output file tmp$$$.obj    buildlib cap.exp
Can't create the output file tmp$$$.obj    buildlib nddeapi.exp
Can't create the output file tmp$$$.obj    buildlib vfw32.exp
Can't create the output file tmp$$$.obj    buildlib dxerr.exp
    buildlib d3d8.exp
    buildlib dpvoice.exp
    buildlib dinput8.exp
Can't create the output file tmp$$$.obj    buildlib msimg32.exp
Can't create the output file tmp$$$.obj    buildlib wtsapi32.exp
Can't create the output file tmp$$$.obj    buildlib qfloat.exp
Can't create the output file tmp$$$.obj    buildlib authz.exp
    buildlib dsuiext.exp
Can't create the output file tmp$$$.obj    buildlib httpapi.exp
Can't create the output file tmp$$$.obj    buildlib powrprof.exp
Can't create the output file tmp$$$.obj    buildlib toolbar.exp
    buildlib traffic.exp
    buildlib uxtheme.exp
Can't create the output file tmp$$$.obj    buildlib zlib.exp
    buildlib dbghelp.exp
Can't create the output file tmp$$$.obj    buildlib d3dx8d.exp
Can't create the output file tmp$$$.obj    buildlib gdiplus.exp
Can't create the output file tmp$$$.obj    buildlib irprops.exp
Can't create the output file tmp$$$.obj    buildlib winhttp.exp
Can't create the output file tmp$$$.obj    buildlib wldap32.exp
Can't create the output file tmp$$$.obj    buildlib cryptnet.exp
Can't create the output file tmp$$$.obj    buildlib cryptui.exp
Can't create the output file tmp$$$.obj    buildlib query.exp
    buildlib oleacc.exp
Can't create the output file tmp$$$.obj    buildlib odbcbcp.exp
    buildlib netsh.exp
Can't create the output file tmp$$$.obj    buildlib icm32.exp
    buildlib sfc.exp
    buildlib wsnmp32.exp
Can't create the output file tmp$$$.obj    buildlib credui.exp
Can't create the output file tmp$$$.obj    buildlib sensapi.exp
Can't create the output file tmp$$$.obj    buildlib rtutils.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj
  buildlib fcachdll.exp
Can't create the output file tmp$$$.obj    buildlib gpedit.exp
    buildlib mtxex.exp
    buildlib nmsupp.exp
    buildlib npptools.exp
Can't create the output file tmp$$$.obj    buildlib nmapi.exp
Can't create the output file tmp$$$.obj    buildlib ntdsapi.exp
Can't create the output file tmp$$$.obj    buildlib ntdsbcli.exp
    buildlib sisbkup.exp
    buildlib winscard.exp
Can't create the output file tmp$$$.obj    buildlib avicap32.exp
Time: 19.657 seconds

Nico 


0
Reply Nico 12/15/2004 10:12:50 PM

"jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
news:41c0ac21$0$9523$8fcfb975@news.wanadoo.fr...
> Nico Witteman wrote:
>> "jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
>> news:41b8ce27$0$8132$8fcfb975@news.wanadoo.fr...
>>
>>>lgielgud wrote:
>>>
>>>>I just installed and tried compiling/linking a basic "hello world"
>>>>program. When I run the linker I get this error:
>>>>
>>>>lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>>
>>>>The resulting hello.exe seems to work, but if I try linking for a dll
>>>>output, the dll is not even generated.
>>>>
>>>>Any ideas?
>>>>
>>>>Here are my complete steps:
>>>>
>>>>
>>>>
>>>>>cat hello.c
>>>>
>>>>#include <stdio.h>
>>>>
>>>>int main(void) {
>>>>printf("hello\n");
>>>>}
>>>>
>>>>
>>>>
>>>>>lcc hello.c
>>>>
>>>>
>>>>>lcclnk hello.obj
>>>>
>>>>c:\lcc\lib\lcccrt0.obj .text: undefined reference to '_RtlUnwind@16'
>>>>
>>>>
>>>>
>>>>>lcc -v
>>>>
>>>>Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Nov 17
>>>>2004 12:00:09
>>>>
>>>>
>>>>
>>>>>lcclnk -v
>>>>
>>>>lcclnk version 1.3
>>>>
>>>>Thanks,
>>>>Lucien
>>>>
>>>
>>>???
>>>
>>>I can't understand this. RtlUnwind is defined in kernel32.lib
>>>I think there is something wrong in the download, maybe the
>>>distribution is corrupt?
>>>
>>>Has anyone else experienced this problem?
>>>
>>>jacob
>>
>>
>>
>> Me too. After a new install, version 3.3, I create a new project using 
>> the skeleton, and the linker produces the follwing output:
>>
>> Wedit output window build: Wed Dec 15 21:46:45 2004
>> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
>> '_RtlUnwind@16'
>> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_signal'
>> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_raise'
>> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to 
>> '__GetMainArgs'
>> c:\compiler\lcc\lib\lcccrt0.obj .text: undefined reference to '_exit'
>> Error g:\dummy\dummy.c 36 undefined reference to _SendMessageA@16
>> Error g:\dummy\dummy.c 81 undefined reference to _LoadStringA@16
>> Error g:\dummy\dummy.c 108 undefined reference to _GetDC@4
>> Error g:\dummy\dummy.c 109 undefined reference to _GetClientRect@8
>> Error g:\dummy\dummy.c 115 undefined reference to _ReleaseDC@8
>> Error g:\dummy\dummy.c 159 undefined reference to _memset
>> Error g:\dummy\dummy.c 166 undefined reference to _LoadCursorA@8
>> Error g:\dummy\dummy.c 167 undefined reference to _LoadIconA@8
>> Error g:\dummy\dummy.c 168 undefined reference to _RegisterClassA@4
>> Error g:\dummy\dummy.c 180 undefined reference to _CreateWindowExA@48
>> Error g:\dummy\dummy.c 197 undefined reference to _PostMessageA@16
>> Error g:\dummy\dummy.c 218 undefined reference to _PostQuitMessage@4
>> Error g:\dummy\dummy.c 221 undefined reference to _DefWindowProcA@16
>> Error g:\dummy\dummy.c 237 undefined reference to _LoadAcceleratorsA@8
>> Error g:\dummy\dummy.c 241 undefined reference to _ShowWindow@8
>> Error g:\dummy\dummy.c 243 undefined reference to 
>> _TranslateAcceleratorA@12
>> Error g:\dummy\dummy.c 244 undefined reference to _TranslateMessage@4
>> Error g:\dummy\dummy.c 245 undefined reference to _DispatchMessageA@4
>> Error g:\dummy\dummy.c 242 undefined reference to _GetMessageA@16
>> defaulttrap.obj .text: undefined reference to '_itoa'
>> defaulttrap.obj .text: undefined reference to '_strcat'
>> defaulttrap.obj .text: undefined reference to '_MessageBoxA@16'
>> defaulttrap.obj .text: undefined reference to '_abort'
>> main.obj .text: undefined reference to '_GetCommandLineA@0'
>> main.obj .text: undefined reference to '_strchr'
>> main.obj .text: undefined reference to '_GetModuleHandleA@4'
>> Compilation + link time:0.2 sec, Return code: 36
>>
>> And suggests to add the libraries, I select OK, and I see that these two 
>> libraries: crtdll.lib and user32.lib are added. However, the next Make 
>> yields the same results.
>>
>> I am stuck.
>> Nico
> Well, the linker finds absolutely no libraries.
>
> 1. Look at the value of the registry key
> HKEY_CURRENT_USER\Software\lcc\linker
>
> what path does it contain?
>
> dir \lcc\lib
>
> Are all the libraries there???
>
> jacob

The registry key is called HKEY_CURRENT_USER\Software\lcc\lcclnk here!

All the libraries are there, but they are damaged, the dolibs-routine 
creates them, but everytime I run the job, the file size of the libs are 
different. Sometimes then the referenced function is in it, sometimes it 
isn't.
I could mail them to you if you want.

Nico 


0
Reply Nico 12/16/2004 5:46:42 AM

And why it can't create the output file?

Either your disk is full, or you do not have
write permission in the current directory.

buildlib does:


/* ------------------Create and initialize the coff file */
CoffFile = fopen("tmp$$$.obj", "wb");
if (CoffFile == NULL) {
         fprintf(stderr,"Can't create the output file %s", "tmp$$$.obj");
         return(0);
}

How much space is left in the drive?
0
Reply jacob 12/16/2004 8:38:03 AM

"jacob navia" <jacob@jacob.remcomp.fr> schreef in bericht 
news:41c1496a$0$9532$8fcfb975@news.wanadoo.fr...
> And why it can't create the output file?
>
> Either your disk is full, or you do not have
> write permission in the current directory.
>
> buildlib does:
>
>
> /* ------------------Create and initialize the coff file */
> CoffFile = fopen("tmp$$$.obj", "wb");
> if (CoffFile == NULL) {
>         fprintf(stderr,"Can't create the output file %s", "tmp$$$.obj");
>         return(0);
> }
>
> How much space is left in the drive?

I have 89.5 GB disk space avaliable and administrator rights. My OS is Win 
XP pro, SP2.

When I run the command ..\bin\buildlib user32.exp it gives me this result:

C:\Compiler\lcc\buildlib>..\bin\buildlib user32.exp
Can't create the output file tmp$$$.objCan't create the output file 
tmp$$$.obj

I get the idea that maybe you want to open the same file more than once, can 
that be the case? I notice that buildlib can create the .lib easily on small 
..exp and that it fails on the larger ones.
Or maybe XP is slow on closing the file before you open it again?

I managed to build the libraries on my computer at work, so I am no longer 
stuck, but it is very strange, don't you agree?

Regards,
Nico


0
Reply Nico 12/16/2004 8:17:35 PM

8 Replies
383 Views

(page loaded in 0.013 seconds)

Similiar Articles:













7/16/2012 2:45:36 PM


Reply: