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

Windows build error with 1.1.0 #191

Closed
adamski opened this issue Apr 3, 2024 · 3 comments · Fixed by #192
Closed

Windows build error with 1.1.0 #191

adamski opened this issue Apr 3, 2024 · 3 comments · Fixed by #192

Comments

@adamski
Copy link

adamski commented Apr 3, 2024

What happened?

Using realm-cpp version 1.1.0 via CMake, I get a compilation error because the contents of sdk.hpp is only a path:

../../src/cpprealm/sdk.hpp

Repro steps

Add realm via CPM:

CPMAddPackage(NAME cpprealm
        GIT_REPOSITORY https://github.com/realm/realm-cpp.git
        GIT_TAG v1.1.0
)

Then

target_link_libraries(${PROJECT_NAME} cpprealm ...)

Then I get:

<path-to>\Cache\cpprealm\61e53a81097c805b409b6f123e8c638ce1f4ee29\include\cpprealm\sdk.hpp(1,1): error C2059: syntax error: '.' 

Version

1.1.0

Installation method

CPM

What Atlas Services are you using?

Atlas Device Sync

Compiler

Visual Studio 17

OS and version

Windows 10

Code snippets

#include <cpprealm/sdk.hpp>

Stacktrace of the exception/crash you're getting

No response

Relevant log output

<path-to>\Cache\cpprealm\61e53a81097c805b409b6f123e8c638ce1f4ee29\include\cpprealm\sdk.hpp(1,1): error C2059: syntax error: '.' 
Copy link

sync-by-unito bot commented Apr 3, 2024

➤ PM Bot commented:

Jira ticket: RCPP-64

@leemaguire
Copy link
Contributor

Hey @adamski, This is caused by Windows not supporting symbolic links out of the box. You'll need to enable symbolic links first and then try rebuilding. Ultimately we plan to move the actual headers into the include folder so that you don't face this issue in the future.

@adamski
Copy link
Author

adamski commented Apr 4, 2024

@leemaguire can you please point me to a guide for how to do that?

It looks like there's a PR on the way so I might just wait for that..

Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants