[vbox-dev] error compiling 3.0.6 additions for linux guests

Joey Chua chua.jj at gmail.com
Mon Sep 21 07:31:11 PDT 2009


Problem:

/tmp/vbox.4/utils.c: In function 'sf_nlscpy':
/tmp/vbox.4/utils.c:532: error: 'wchar_t' undeclared (first use in
this function)
/tmp/vbox.4/utils.c:532: error: (Each undeclared identifier is
reported only once
/tmp/vbox.4/utils.c:532: error: for each function it appears in.)
/tmp/vbox.4/utils.c:532: error: syntax error before 'uni'
/tmp/vbox.4/utils.c:537: error: 'uni' undeclared (first use in this function)


Suggested solution:

--- vbox.3/utils.c      2009-09-10 03:45:02.000000000 +1000
+++ vbox.4/utils.c      2009-09-21 01:37:01.000000000 +1000
@@ -529,7 +529,7 @@

                 while (in_bound_len) {
                         int nb;
-                        wchar_t uni;
+                        linux_wchar_t uni;

 #if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 31)

                         nb = utf8_to_utf32 (in, in_bound_len, &uni);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090922/75d3686d/attachment-0001.html 


More information about the vbox-dev mailing list