Unknown type name ‘off64_t’

后端 未结 7 1842
你的背包
你的背包 2021-02-12 17:52

I have a problem using Apache Portable Runtime on Ubuntu with GCC 4.8.1

The problem is that the off64_t from is not availab

相关标签:
7条回答
  • 2021-02-12 18:45

    Sorry for the lateness but I did never had to embed perl code in C programs untill today ^^

    I solved the issue in Unix/Linux systems (I think it is possible to create such feature in Windows since Vista) by creating a symbolic link pointing to the CORE folder of perl version...

    ln -s $(perl -MConfig -e 'print $Config{archlib}')/CORE /usr/include/perl
    

    In your project file, source code, simply add:

    #include <perl/EXTERN.h>
    #include <perl/perl.h>
    

    ...and I came from long list of notes and errors related to off_t and off64_t to a clean build result ^^

    0 讨论(0)
提交回复
热议问题