Comments (5)
@sjoelund The [[noreturn]] case was copied from ModelicaUtilities.h. Can you please inspect and comment on it. Thanks.
from matio.
Yes, I think for C++, extern "C" needs to be the first part of the declaration. It's more conceptual to extern "C" { declaration }, whereas in C, extern is just a part of the declaration. It did work with clang++ -std=c++11 and g++ with default std; only breaks with g++ -std=c++11.
from matio.
I hopefully fixed the C++ compilation in branch fix-c++. Please test and confirm if it works for you.
from matio.
Yes, works for me. Thanks.
Note that I'm not compiling matio with a C++ compiler; I'm using matio in a C++ application, so only the changes related to matio.h and matio_pubconf.h affect my use.
The additional changes related to being able to compile matio with a C++ compiler are nice, but I don't use those and I didn't test that -- all I tested was including matio.h in a C++ application which is what was failing for me previously.
from matio.
Fixed by 07728a3.
from matio.
Related Issues (20)
- Not able to build on Ubuntu 22.04.2 LTS HOT 1
- Compression failure caused by incorrect ChunkSize HOT 2
- Buliding with afl++ gives linker error `ld: unknown option: --retain-symbols-file` HOT 6
- A problem with corrupted files HOT 7
- Microsoft Windows minimal CMake configuration HOT 2
- HDF5 error on reading compressed v7.3 matfiles HOT 1
- cmake can not verify HDF5 version when building with VS 2022 HOT 1
- Methods to access data stored in nested variables in.mat file. HOT 2
- Failed to read from 7.3 mat file generated from hdf5storage python package HOT 6
- Does matio have documents just like API HOT 1
- Is matio capable of handle GBK string? HOT 1
- Using undefined types “matvar_internal” HOT 1
- cannot compile successfully on Windows HOT 1
- MinGW Build Regression HOT 4
- LFS support on MinGW broken HOT 4
- `READ_DATA` macro needs checks before float to int casts HOT 1
- loading sparse matrix with only null values in v4 format HOT 3
- saving structure in v7 format with compression HOT 4
- CAN it replace or just input one column date? HOT 1
- After make command get this error: missing binary operator before token "(" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matio.