Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lo_message redefined in liblo 0.32 #1864

Open
vishwin opened this issue Feb 22, 2024 · 1 comment
Open

lo_message redefined in liblo 0.32 #1864

vishwin opened this issue Feb 22, 2024 · 1 comment

Comments

@vishwin
Copy link

vishwin commented Feb 22, 2024

typedef void* lo_message;

As of liblo 0.32, specifically radarsat1/liblo@2c1ef1c, this errors in clang:

In file included from CarlaPluginLADSPADSSI.cpp:27:
In file included from ../../utils/CarlaOscUtils.hpp:23:
In file included from /usr/local/include/lo/lo.h:29:
/usr/local/include/lo/lo_types.h:60:29: error: typedef redefinition with different types ('struct lo_message_ *' vs 'void *')
   60 | typedef struct lo_message_ *lo_message;
      |                             ^
../CarlaPlugin.hpp:27:15: note: previous definition is here
   27 | typedef void* lo_message;
      |               ^
1 error generated.

Should probably guard this typedef within #ifndef HAVE_LIBLO.

@BlueMax
Copy link

BlueMax commented Feb 29, 2024

Edit 2024-03-13: Compiling properly again...
Doesn't work here. Any ideas?
Currently doesn't compile on Arch.

#ifndef HAVE_LIBLO
typedef void* lo_message;
#endif
Compiling CarlaEngineClient.cpp
In file included from CarlaPluginInternal.hpp:21,
                 from CarlaPlugin.cpp:18:
../CarlaPlugin.hpp:783:35: error: 'lo_message' has not been declared
  783 |                                   lo_message msg);
      |                                   ^~~~~~~~~~
6 more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants