The Atheros Open Powerline Toolkit includes a Visual Studio .NET™ solution file, ./VisualStudioNET/plc-utils.sln
, that will build the toolkit on Windows XP SP2 from the Linux code base. The following information may be helpful to developers wanting to modify or extend the solution or port it to another version of Microsoft Visual Studio:
All projects are WIN32 Console Projects.
All projects have pre-compiled headers suppressed.
All projects should globally define preprocessor constant MAKEFILE
to prevent proliferation of "already defined" link errors. See Stand-alone Compiling on GNU/Linux for an explanation of this constant.
All projects search folder ..\include
for stdint.h and unistd.h because Microsoft does not provide them. These header files are customized or abbreviated versions of their POSIX counterparts and should be used when originals are available.
Projects that perform raw Ethernet I/O should globally define preprocessor constant WINPCAP
to enable appropriate code segments. Preprocessor error statements should (but may not) alert you if WINPCAP
is not defined on Windows™ platforms.
Projects that perform raw Ethernet I/O search folder ..\include
for WinPcap header files. These files are taken from the WinPcap development package and may require periodic updates. Header files pcap.h, pca-stdinc.h, pcap-bpf.h, ipv6_misc.h and bittypes.h belong in folder VisualStudioNET\include
. Other header files belong in folder VisualStudioNET\include\pcap
.
Projects that perform raw Ethernet I/O should include folder ..\library
for core WinPcap libraries.
Projects that perform raw Ethernet I/O should link to libraries ws2_32.lib
, packet.lib
and wpcap.lib
. The first library is the Microsoft Winsock2 library. The others are core WinPcap libraries.