Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Error while trying to compile LDMicro

(you are viewing a thread; or go back to list of threads)

Error while trying to compile LDMicro (by Xavier)
Hi

I tried to compile LDMicro, however a number of errors show up so it can't generate the executable.

Googling I found that there are two entries to cq.cx webpage (the project web site), but it just mention them, no answers at all.

Anyone has succeded building the source code?



Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

ldmicro.cpp
ldmicro.cpp(739) : error C2065: 'VK_OEM_1' : undeclared identifier
ldmicro.cpp(739) : error C2051: case expression not constant
ldmicro.cpp(748) : error C2065: 'VK_OEM_2' : undeclared identifier
ldmicro.cpp(748) : error C2051: case expression not constant
ldmicro.cpp(752) : error C2065: 'VK_OEM_5' : undeclared identifier
ldmicro.cpp(752) : error C2051: case expression not constant
ldmicro.cpp(843) : error C2065: 'VK_OEM_PLUS' : undeclared identifier
ldmicro.cpp(843) : error C2051: case expression not constant
ldmicro.cpp(851) : error C2065: 'VK_OEM_MINUS' : undeclared identifier
ldmicro.cpp(851) : error C2051: case expression not constant
ldmicro.cpp(868) : error C2065: 'VK_OEM_PERIOD' : undeclared identifier
ldmicro.cpp(868) : error C2051: case expression not constant
ldmicro.cpp(876) : error C2065: 'VK_OEM_COMMA' : undeclared identifier
ldmicro.cpp(876) : error C2051: case expression not constant
ldmicro.cpp(959) : error C2065: 'GET_WHEEL_DELTA_WPARAM' : undeclared identifier

ldmicro.cpp(1101) : error C2664: 'SetTimer' : cannot convert parameter 4 from 'v
oid (struct HWND__ *,unsigned int,unsigned long,unsigned long)' to 'void (__stdc
all *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'
None of the functions with this name in scope match the target type
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Fri Sep 28 2012, 13:26:54
(no subject) (by Xavier)
I have already installed VS6, and then I installed the SDK platform, as recomendded in related posts, but the same trouble still exist.

I look into my file system and I didn't find any windows.h, and the others files required for the LD project. Aparently, the SDK didn't install them.

Well, I found the files but in strange locations:

c:\Octave
c:\QT
c:\strawberry

The last one is because Perl was also installed for compiling this project.

Can I use those headers files from that locations? All of that paths are related to the Mingw compiler, I'm afraid, but I'll try.
Fri Sep 28 2012, 16:04:49
It works!! (by Xavier)
The SDK installation was kind of corrupted, so I reinstalled again, and the project compiled. I guess I have the unix-like tools already installed because it wasn't necessary to do so.

Although the project successfully compiled, some weird things happened:

1) I run the "make.bat" for the first time, and it compiled, but no linked 'cause "unresolved externals".

2) Then I run it again, and it linked and generate the .exe

3) At the end of the building process I got this message:

differences follow:
diff: expected: No such file or directory
(0 difference(s)/0)
pass!


Is that good or bad?

4) Before running everything, I made a mistake and I deleted the \obj folder and the compiler complied, why? So I needed to restore from the Trash folder.
Fri Sep 28 2012, 18:26:35
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):