我正在尝试编译我最初编写的用于使用MSVC与GCC进行编译的大学项目。我已经创建了解决方案和一些项目。一个项目包含同一解决方案的其余项目使用的共享库的代码。共享库和其他项目都会编译。
当我尝试运行依赖于共享库的任何项目时,我可以在输出窗口中看到消息,表明符号已加载,但代码中断了一个错误,我只能解释为“没有找到“在共享库中的功能(字面意思是说”访问冲突“)。
堆栈跟踪如下所示:
ucrtbased.dll!<Unknown function> Unknown
> test2.dll!<Unknown function> Line 19 C
assignment14.exe!<Unknown function> Line 37 C
assignment14.exe!<Unknown function> Line 50 C
assignment14.exe!<Unknown function> Line 64 C++
assignment14.exe!<Unknown function> Line 255 C++
assignment14.exe!<Unknown function> Line 300 C++
assignment14.exe!<Unknown function> Line 17 C++
该项目完全用C语言编写,没有C ++,不知道为什么在那里说C ++。
这是输出窗口的内容:
'assignment14.exe' (Win32): Loaded 'C:\Users\wvxvw\Documents\uni\test2\test2\Debug\assignment14.exe'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Users\wvxvw\Documents\uni\test2\test2\Debug\test2.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-timezone-l1-1-0.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l2-1-0.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-localization-l1-2-0.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-synch-l1-2-0.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-processthreads-l1-1-1.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l1-2-0.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'assignment14.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
Exception thrown at 0x0F180E6A (ucrtbased.dll) in assignment14.exe: 0xC0000005: Access violation writing location 0x00A5D6F9.
我甚至不知道要查看的方向,因此,如果您需要有关我的设置的更多信息,我很乐意提供。