wachub / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

nmake windows can not ok. #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
nmake windows can not ok, I use below :

______________________________________________________________________

C:\Documents and Settings\qs\My Documents\下载\mongoose>cl /c /MT *.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

main.c
mongoose.c
Generating Code...

C:\Documents and Settings\qs\My Documents\下载\mongoose>link *.obj 
kernel32.lib
gdi32.lib user32.lib ws2_32.lib advapi32.lib
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

main.obj : error LNK2019: unresolved external symbol __imp__Shell_NotifyIconA@8
referenced in function _WinMain@16
main.exe : fatal error LNK1120: 1 unresolved externals

C:\Documents and Settings\qs\My Documents\下载\mongoose>link *.obj 
kernel32.lib
gdi32.lib user32.lib ws2_32.lib advapi32.lib shell32.lib
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\Documents and Settings\qs\My Documents\下载\mongoose>dir /d *.exe
 驱动器 C 中的卷是 WinXP
 卷的序列号是 3CF9-95F7

 C:\Documents and Settings\qs\My Documents\下载\mongoose 的目录

main.exe
               1 个文件        177,152 字节
               0 个目录 18,924,314,624 可用字节

C:\Documents and Settings\qs\My Documents\下载\mongoose>

Original issue reported on code.google.com by xmdo...@gmail.com on 14 Oct 2011 at 7:04

GoogleCodeExporter commented 9 years ago
You forgot "shell32.lib".

Original comment by valenok on 6 Nov 2011 at 10:35

GoogleCodeExporter commented 9 years ago
I use this to compile and get mongoose.exe.(Microsoft VS2008 SP1)

<code>
del *.exe *.obj
rc win32\res.rc
cl /c /MT /O2 /W3 /GL /D_WIN32 main.c mongoose.c
link /incremental:no /subsystem:windows *.obj kernel32.lib gdi32.lib user32.lib 
ws2_32.lib advapi32.lib shell32.lib cyassl.lib .\win32\res.res /out:mongoose.exe

</code>

Original comment by mike2718 on 15 Jan 2012 at 5:29