Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2009-10-11 02:48:32

beisenmann
Member
Registered: 2009-03-15
Posts: 3

Problem Compiling On Windows

After downloading the latest SVN on 10-10-2009 I ran into a problem compiling on Windows using the ProxSpace found at http://proxmark3.googlecode.com/files/2 … xSpace.zip

Visual studio 9 does not like strncasecmp. And resulted in the following error:

cl /W3 /nologo /Zi /MT /Fdobj/vc90.pdb /I"..\..\devkitWIN"\include /D_WIN32_WINN
T=0x501 /DISOLATION_AWARE_ENABLED /D_WIN32_IE=0x600 /DWIN32_LEAN_AND_MEAN /DWIN3
2 /D_MT /D_CRT_SECURE_NO_WARNINGS -c -Foobj/command.obj command.cpp
command.cpp
command.cpp(2837) : error C3861: 'strncasecmp': identifier not found
command.cpp(2839) : error C3861: 'strncasecmp': identifier not found
command.cpp(2841) : error C3861: 'strncasecmp': identifier not found
command.cpp(2843) : error C3861: 'strncasecmp': identifier not found
make: *** [proxmark3] Error 2

In order to resolve this I added the following lines to command.cpp starting at line 21.

#if defined(_WIN32) || defined(_WIN64)
#define strncasecmp _strnicmp
#endif


Also the Makefile in winsrc contained the following line:
BASE_DIR    ?= "..\..\devkitWIN"

The quotes could be an issue depending on the  build environment.  I changed the line in my source to the following:
BASE_DIR    ?= ..\..\devkitWIN

Hope this helps anyone seeing the same problem.  This was just a quick workaround.  I usually work in Linux.

Offline

#2 2009-10-11 13:08:35

rule
Member
Registered: 2008-05-21
Posts: 417

Re: Problem Compiling On Windows

Thank you very much for your contribution. Are you willing to submit your patch into the issue-list, this way we could process the changes easier smile

Offline

#3 2009-10-16 03:48:48

beisenmann
Member
Registered: 2009-03-15
Posts: 3

Re: Problem Compiling On Windows

Submitted

Offline

Board footer

Powered by FluxBB