我正在构建一个需要使用长路径的ASP.NET Web应用程序.我将它定位到.NET 4.6.2并且一切都很完美,因为4.6.2默认情况下启用了长路径(源),直到Windows 10创建者(RS2)更新.
突然,System.IO返回了最大路径异常.我做了一些研究,发现了这篇文章.似乎发布Windows 10创建者(RS2)更新,为了使长路径工作,需要有一个app.mainfest与
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
Run Code Online (Sandbox Code Playgroud)
我已经确认将app.manifest修改添加到控制台应用程序会带来长路径功能.唯一的问题是这是一个Web应用程序.我无法弄清楚如何将app.manifest的equivelant添加到Web应用程序中.
我是C的新手,并且在我尝试使用编译程序时不明白为什么会出现这些错误g++ ./main.c.我试过看其他资源,我无法找到我需要的答案.如果有您已经知道的解决方案,请在此处发布.
/tmp/ccSGRAcp.o: In function `producer(void*)':
main.c:(.text+0x12): undefined reference to `sem_wait'
main.c:(.text+0x1c): undefined reference to `sem_wait'
main.c:(.text+0xa0): undefined reference to `sem_post'
main.c:(.text+0xaa): undefined reference to `sem_post'
/tmp/ccSGRAcp.o: In function `consumer(void*)':
main.c:(.text+0xc5): undefined reference to `sem_wait'
main.c:(.text+0xcf): undefined reference to `sem_wait'
main.c:(.text+0x153): undefined reference to `sem_post'
main.c:(.text+0x15d): undefined reference to `sem_post'
/tmp/ccSGRAcp.o: In function `main':
main.c:(.text+0x17e): undefined reference to `sem_init'
main.c:(.text+0x192): undefined reference to `sem_init'
main.c:(.text+0x1a6): undefined reference to `sem_init'
main.c:(.text+0x1c1): undefined reference to `pthread_create'
main.c:(.text+0x1dc): undefined reference to …Run Code Online (Sandbox Code Playgroud)