- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Linking...(Intel C++ Environment)
xilink: executing 'link'
eMain.obj : error LNK2019: unresolved external symbol _atexit referenced in function ___sti__$E@0
There is no '___sti__$E@0' in my project nor is there any reference to an _atexit symbol.
I've commented everything but the WinMain function out and I still get this error... yet I compiled before and it worked fine.
xilink: executing 'link'
eMain.obj : error LNK2019: unresolved external symbol _atexit referenced in function ___sti__$E@0
There is no '___sti__$E@0' in my project nor is there any reference to an _atexit symbol.
I've commented everything but the WinMain function out and I still get this error... yet I compiled before and it worked fine.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"_atexit" is referenced by some functions in libm.lib and libirc.lib.
did you have the lib path set to the lib directory? You said you've commented out everything except WinMain. You may still have the header files with STL definitions.
If you still have the link problem, please send the WinMain.i file to PremierSupport.
Thanks,
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It was caused by a class destructor in a class defined in one of my other .cpp files. I had included libirc.lib and apparently _atexit is used to signal the code within class destructors. I just removed the destructor and it compiled fine.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page