You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using xeus-cling on Windows Subsystem for Linux, which is currently the most popular/best known alternative to the no-windows-support-related "problem".
I often use the magic %%file to write .cpp scripts to a Windows directory as follows ...
%%file /mnt/c/Users//path/to/project/.cpp
/*
cpp code here
*/
I sometimes compile files using the following syntax in a code cell ...
It is also possible for me to create .dll and .dir files using a similar command as the above with the -shared flag.
The problem that I experience is to import .dll and .dir using the #pragma directive like so ...
#pragma cling add_include_path("/mnt/c/Users//path/to/project/") // no error
#pragma cling add_library_path("/mnt/c/Users//path/to/project/") // no error
I have also tried it like this ...
#pragma cling add_include_path("C:\Users\\path\to\project\") // no error
#pragma cling add_library_path("C:\Users\\path\to\project\") // no error
which does not really seem what's causing the problem.
However, running the below in a code cell ...
#pragma cling load(".dll")
gives this error ...
input_line_147:1:29: error: expected .dll to be a library, but it is not. If this is a source file, use #include "<libraryname>.dll"
#pragma cling load(".dll")
^ (This little up-arrow should be pointing to the closing parenthesis)
Interpreter Error:
Is there a fix for this or does anyone have an idea of how to work around this, or will this just be classified as a no-windows-support-related error?
The text was updated successfully, but these errors were encountered:
I am using xeus-cling on Windows Subsystem for Linux, which is currently the most popular/best known alternative to the no-windows-support-related "problem".
I often use the magic %%file to write .cpp scripts to a Windows directory as follows ...
%%file /mnt/c/Users//path/to/project/.cpp
/*
cpp code here
*/
I sometimes compile files using the following syntax in a code cell ...
It is also possible for me to create .dll and .dir files using a similar command as the above with the -shared flag.
The problem that I experience is to import .dll and .dir using the #pragma directive like so ...
I have also tried it like this ...
which does not really seem what's causing the problem.
However, running the below in a code cell ...
gives this error ...
input_line_147:1:29: error: expected .dll to be a library, but it is not. If this is a source file, use
#include "<libraryname>.dll"
#pragma cling load(".dll")
^ (This little up-arrow should be pointing to the closing parenthesis)
Interpreter Error:
Is there a fix for this or does anyone have an idea of how to work around this, or will this just be classified as a no-windows-support-related error?
The text was updated successfully, but these errors were encountered: