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
When defining MALLOB_BASE_DIRECTORY, the quotes need to be escaped for the MacroExpansion to work. (Probably the shell removing quotes?)
Example (fail): > make MALLOB_BASE_DIRECTORY='"/tmp"'
g++ -DMALLOB_BASE_DIRECTORY="/tmp" -c -std=c++17 src/mallob_ipasir.cpp -Isrc
src/mallob_ipasir.hpp: In constructor ‘MallobIpasir::MallobIpasir()’:
<command-line>: error: expected primary-expression before ‘/’ token
src/mallob_ipasir.hpp:38:24: note: in expansion of macro ‘MALLOB_BASE_DIRECTORY’
38 | _api_directory(MALLOB_BASE_DIRECTORY + std::string("/.api/jobs.") + MALLOB_API_INDEX + std::string("/")),
| ^~~~~~~~~~~~~~~~~~~~~
<command-line>: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’?
src/mallob_ipasir.hpp:38:24: note: in expansion of macro ‘MALLOB_BASE_DIRECTORY’
38 | _api_directory(MALLOB_BASE_DIRECTORY + std::string("/.api/jobs.") + MALLOB_API_INDEX + std::string("/")),
| ^~~~~~~~~~~~~~~~~~~~~
make: *** [makefile:7: mallob_ipasir.o] Error 1
Example (works): make MALLOB_BASE_DIRECTORY='\"/tmp\"'
The text was updated successfully, but these errors were encountered:
Hi,
When defining MALLOB_BASE_DIRECTORY, the quotes need to be escaped for the MacroExpansion to work. (Probably the shell removing quotes?)
Example (fail):
> make MALLOB_BASE_DIRECTORY='"/tmp"
'Example (works):
make MALLOB_BASE_DIRECTORY='\"/tmp\"'
The text was updated successfully, but these errors were encountered: