[chuck-dev] ChucK-1.3.3.0 - Problem with source & compilation [Linux-Mint]
Lionel Atty
yoyonel at hotmail.com
Fri Nov 29 11:04:30 EST 2013
Here a better way to explain the modifications:
chuck-1.3.3.0/src $ more patch_util_string_cpp.patch
387a388,391
> #ifndef PATH_MAX
> #include <linux/limits.h>
> #endif
>
You can apply the patch like this:
chuck-1.3.3.0/src $ patch util_string.cpp -i patch_util_string_cpp.patch -o util_string.cpp
YoYo
From: yoyonel at hotmail.com
To: chuck-dev at lists.cs.princeton.edu
Subject: ChucK-1.3.3.0 - Problem with source & compilation [Linux-Mint]
Date: Fri, 29 Nov 2013 16:50:13 +0100
Hey Guyz !
A minor problem in the source code for linux compilation:
util_string.cpp: In function ‘std::string get_full_path(const string&)’:
util_string.cpp:393:14: erreur: ‘PATH_MAX’ was not declared in this scope
util_string.cpp:395:42: erreur: ‘buf’ was not declared in this scope
make: *** [util_string.o] Erreur 1
Just need to add this lines in util_string.cpp at lines 387:
#ifndef PATH_MAX
#include <linux/limits.h> // for PATH_MAX definition
#endif
Enjoy,
YOOoOYoOoOo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-dev/attachments/20131129/1190838b/attachment.html>
More information about the chuck-dev
mailing list