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

Error on go build step #5

Closed
justay opened this issue Jun 30, 2017 · 3 comments
Closed

Error on go build step #5

justay opened this issue Jun 30, 2017 · 3 comments

Comments

@justay
Copy link

justay commented Jun 30, 2017

hi,
when follow the Doc to build the gorfc, get an error message
C:\Gops\src\github.com\sap\gorfc\gorfc>go build #github.com/sap/gorfc/gorfc In file included from C:/nwrfcsdk/include/sapnwrfc.h:7:0, from .\gorfc.go:41: C:/nwrfcsdk/include/sapucx.h:562:5: warning: 'align' attribute directive ignored [-Wattributes] typedef __declspec(align(16)) SAP_SRAW platform_max_t[16]; ^ In file included from .\gorfc.go:41:0: C:/nwrfcsdk/include/sapnwrfc.h:28:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning (disable : 4267) // disable warning: conversion from 'size_t' to 'const unsigned int' ^ In file included from C:/nwrfcsdk/include/sapnwrfc.h:9:0, from .\gorfc.go:41: C:/nwrfcsdk/include/sapuc.h:853:24: warning: 'sccsidU16' defined but not used [-Wunused-variable] static const SAP_UC* sccsidU16 = NULL; ^
plantform

  • os windows 10
  • go 1.8

thanks for any help.

@STiAT
Copy link

STiAT commented Apr 13, 2018

It's just a compiler warning, and can safely be ignored. It's in the rfc header files coming with the SAP SDK.

@SimonWaldherr
Copy link
Contributor

@justay i added the -Wno-unused-variable-Flag in commit a904f99#diff-5c38aff45e37dbe9ecb92bcb0f79023cR18, but only for builds on Linux. I don't use gorfc on Windows, but you could try something similar.

@JonasDann
Copy link
Contributor

@justay I will consider this as solved.

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

4 participants