Ii. Use V8
1. To use the static library version, you must introduce winmm. lib and ws2_32.lib.
# Pragma comment (Lib, "winmm. lib") <br/> # pragma comment (Lib, "ws2_32.lib") <br/> # pragma comment (Lib, "libv8-vc90-mt.lib ")
Otherwise, an error similar to the following occurs:
Error lnk2019: unresolved external symbol _ imp _ timegettime @ 0 referenced in function "public: void _ thiscall V8: Internal: Time: settocurrenttime (void )"(? Settocurrenttime @ time @ internal @ V8 @ qaexxz)
Error lnk2019: unresolved external symbol _ imp _ bind @ 12 referenced in function "public: Virtual bool _ thiscall V8: Internal: win32socket: BIND (INT) "(? Bind @ win32socket @ internal @ V8 @ uae_nh @ Z
)
2. The connection CRT mode remains the same
If the program you write is a dynamic link CRT (I .e./MD), the V8 library will also use the version compiled by the dynamic link CRT; otherwise, the following warning will be obtained:
1> link: Warning lnk4075: Ignoring '/Incremental 'due to'/ltcg 'specification
1> link: Warning lnk4098: defaultlib 'libcmt' conflicts with use of other libs; Use/nodefaultlib: Library