|
-
April 6th, 2006, 12:38 PM
#1
Problem with DLL / Lib
Hi There,
I'm using a 3rd party lib file and headers in a project of mine.
Once I start using the functionality provided by the .lib file I started getting the following error when compiling :
Code:
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
After doing some research, it seemed I had to add it to the 'ignore specific library' list in the VC++ 2005 project settings under -> Project Properties-> Linker -> Input ->Ignore Specific Library. Fine - did that! (added msvcrt.lib to the list).
Built and cleaned the soultion and all seemed OK. No errors or warning.
Now, when I run the application, code is below,(which is just a console project that simply creates an instance of structure contained within the library and then calls a function, also within the .lib file to clear it (by passing its address)) I receive the following in the Debug window, and the program appears "trapped":
Code:
'eval-test.exe': Loaded 'D:\Projects\eval-test\debug\eval-test.exe', Symbols loaded.
'eval-test.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'eval-test.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'eval-test.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.
eval-test.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
First-chance exception at 0x102308cf (msvcr80d.dll) in eval-test.exe: 0xC0000005: Access violation writing location 0x00130000.
First-chance exception at 0x00000000 in reval-test.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in eval-test.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in eval-test.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in eval-test.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in eval-test.exe: 0xC0000005: Access violation reading location 0x00000000.
The thread 'Win32 Thread' (0x8d8) has exited with code -1073741510 (0xc000013a).
The program '[2984] eval-test.exe: Native' has exited with code -1073741510 (0xc000013a).
Here's the code in it's entirety:
Code:
int _tmain(int argc, _TCHAR* argv[])
{
enum_result_t resulta;
enumResultClear(&resulta);
return 0;
}
Regards,
Big Winston
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|