![]() ![]() offĮcho Setting up Visual Studio environment.Ĭall "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86_amd64 You might want to do this in a batch script in order to save some typing, e.g. ![]() You must also set the WIRESHARK_TARGET_PLATFORM environment variable to "win64" in order to enable 64-bit support in Wireshark's makefiles. NET Framework SDK if you are using Visual C++ Express Edition. According to an Howto on MSDN you must install the. Instead of running Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat as specified in the Developer's Guide you must set up your environment using Microsoft Visual Studio 9.0\VC\vcvarsall.bat. ![]() In order to compile 64-bit applications in Visual C++ you must set your target appropriately. GLib documents "gsize" and "gssize" data types, and offers G_GSIZE_MODIFIER, G_GSSIZE_FORMAT, and G_GSIZE_FORMAT #defines if they're supported by all the versions of GLib that we support, if we use "gsize" instead of "size_t" and "gssize" instead of "ssize_t", and use G_GSIZE_FORMAT and G_GSSIZE_FORMAT to print them, that should handle that problem. Using long and size_t interchangeably may work on LP64 platforms, but it doesn't work on LLP64 platforms such as Win64. This also can cause problems on LP64 platforms - most objects won't be of a size > 2^31-1, but printing a size_t can't always be done with %d or %u. Other compilers may not care, but this breaks compilation in Visual C++ (2008, at least). We use int and size_t interchangeably in a lot of places. Sizeof(size_t) != sizeof(int) and sizeof(size_t) != sizeof(long) Linux, Solaris, macOS, *BSD, AIX, HP-UX, other UN*Xes, !Windows Windows, Linux, Solaris, macOS, *BSD, AIX, HP-UX, other UN*Xes If you assume that long ints and pointers have the same number of bits, you're in trouble: Data model 64-bit UN*X platform use the LP64 data model however, 64-bit Windows uses the LLP64 data model. ILP32, LP64, and LLP64ģ2-bit UN*X platforms, and 32-bit Windows, use the ILP32 data model. This requires extra care when writing code for Wireshark, as described below. Wireshark 1.2.0 introduced official support for 64-bit Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |