Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in VSExpress 2008 SP1 with libmodbus-3.1.11 #790

Open
ottelo9 opened this issue Jan 15, 2025 · 0 comments
Open

Build error in VSExpress 2008 SP1 with libmodbus-3.1.11 #790

ottelo9 opened this issue Jan 15, 2025 · 0 comments

Comments

@ottelo9
Copy link

ottelo9 commented Jan 15, 2025

libmodbus version

libmodbus-3.1.11

OS and/or distribution

Windows 10 (Virtual Machine VMware)

Environment

64 bit, Virtual Studio Express 2008 SP1

Description

I compiled previous versions of libmodus (last 3.1.10) without any errors in my Virtual Windows Machine with MS Visual Studio Express 2008 SP1. But with the newest 3.1.11 I got these build errors:

Sorry, its german:

1>modbus.c
1>..\modbus.c(927) : error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
1>..\modbus.c(928) : error C2065: 'data': nichtdeklarierter Bezeichner
1>..\modbus.c(928) : error C2065: 'data': nichtdeklarierter Bezeichner
1>..\modbus.c(930) : error C2065: 'data': nichtdeklarierter Bezeichner
1>..\modbus.c(941) : error C2065: 'data': nichtdeklarierter Bezeichner
1>..\modbus.c(973) : error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
1>..\modbus.c(975) : error C2065: 'data': nichtdeklarierter Bezeichner
1>modbus-tcp.c
1>..\modbus-tcp.c(522) : error C2065: 'EOVERFLOW': nichtdeklarierter Bezeichner

Translated:
Missing ; in row 927 in modbus.c: int data = (req[offset + 3] << 8) + req[offset + 4];
...
Undeclared identifier EOVERFLOW in modbus-tcp.c

See also my google groups entry, posted a week ago:
https://groups.google.com/g/libmodbus/c/XTiMoDFmNIM

Actual behavior if applicable

compiling errors

Expected behavior or suggestion

no errors

Steps to reproduce the behavior (commands or source code)

Follow these instructions:
https://github.com/stephane/libmodbus/wiki/Compile-dll-under-Windows-with-Visual-Studio-2008-Express

libmodbus output with debug mode enabled

needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant