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

Getting Cmake Error while Building #69

Open
Saurabh2109 opened this issue Jan 14, 2022 · 4 comments
Open

Getting Cmake Error while Building #69

Saurabh2109 opened this issue Jan 14, 2022 · 4 comments

Comments

@Saurabh2109
Copy link

CMake Error at C:/Users/dataman/AppData/Local/Programs/Python/Python310/Lib/site-packages/cmake/data/share/cmake-3.22/Modules/SystemInformation.cmake:35 (file):
file failed to open for writing (No such file or directory):

D:/Andre/CppTrader/modules/CppCommon/

Call Stack (most recent call first):
modules/CppCommon/CMakeLists.txt:27 (include)

CMake Error at C:/Users/dataman/AppData/Local/Programs/Python/Python310/Lib/site-packages/cmake/data/share/cmake-3.22/Modules/SystemInformation.cmake:35 (file):
file failed to open for writing (No such file or directory):

D:/Andre/CppTrader/modules/CppCommon/

Call Stack (most recent call first):
modules/CppCommon/CMakeLists.txt:27 (include)

CMake Error at C:/Users/dataman/AppData/Local/Programs/Python/Python310/Lib/site-packages/cmake/data/share/cmake-3.22/Modules/SystemInformation.cmake:35 (file):
file failed to open for writing (No such file or directory):

D:/Andre/CppTrader/modules/CppCommon/

Call Stack (most recent call first):
modules/CppCommon/CMakeLists.txt:27 (include)

@chronoxor
Copy link
Owner

Did you do the following step?
image

@Saurabh2109
Copy link
Author

yes i followed all the steps.this error was coming from running vs.bat.Is there any path related issue.

@Saurabh2109
Copy link
Author

Now i am getting this error.

"D:\Andre\CppTrader\temp\ALL_BUILD.vcxproj" (default target) (1) ->
"D:\Andre\CppTrader\temp\cpptrader-tests.vcxproj" (default target) (17) ->
(Link target) ->
cppcommon.lib(path.obj) : error LNK2019: unresolved external symbol __imp_GetUserProfileDirectoryW referenced
in function "public: static class CppCommon::Path __cdecl CppCommon::Path::home(void)" (?home@Path@CppCommon@@sa
?AV12@XZ) [D:\Andre\CppTrader\temp\cpptrader-tests.vcxproj]
cppcommon.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp_UuidCreate referenced in function "p
ublic: static class CppCommon::UUID __cdecl CppCommon::UUID::Random(void)" (?Random@UUID@CppCommon@@sa?AV12@XZ)
[D:\Andre\CppTrader\temp\cpptrader-tests.vcxproj]
cppcommon.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp_UuidCreateSequential referenced in f
unction "public: static class CppCommon::UUID __cdecl CppCommon::UUID::Sequential(void)" (?Sequential@UUID@CppCo
mmon@@sa?AV12@XZ) [D:\Andre\CppTrader\temp\cpptrader-tests.vcxproj]
D:\Andre\CppTrader\temp\RelWithDebInfo\cpptrader-tests.exe : fatal error LNK1120: 3 unresolved externals [D:\A
ndre\CppTrader\temp\cpptrader-tests.vcxproj]

@uniflare
Copy link

UuidCreate and UuidCreateSequential come from MS, you need to link Rpcrt4.lib.
GetUserProfileDirectoryW is also a MS function and comes from userenv.lib.

Arguably these should be public dependencies of cppcommon module, or at least interface dependencies if you want to rely on the user to link these

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

3 participants