Skip to content

tweeny-3.2.0.h(1906,25): error C2589: '(': illegal token on right side of '::' #44

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

Open
vicenteconejerosdelacruz opened this issue Feb 4, 2025 · 5 comments

Comments

@vicenteconejerosdelacruz

I just found about this header file(sounds great). but when i'm trying to use it on my visual studio 2022 project i get this error by just adding this two lines

#include <tweeny-3.2.0.h>

auto test = tweeny::from(1.0f).to(0.0f).during(10);

not sure if it's a template thing, a namespace thing or a compatibility of the compiler. has anybody else face this?

Regards

@vicenteconejerosdelacruz
Copy link
Author

oooh no win support. that's too bad, it looks to be a really desirable library to have in my project

thanks!

@mobius3
Copy link
Owner

mobius3 commented Feb 7, 2025

Hey, it should work on windows! Can you post the complete error log and also the command that VS is using? Also, what is your toolchain?

@vicenteconejerosdelacruz
Copy link
Author

Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.11.5

i put tweeny-3.2.0.h in the root of my project

I included
#include "tweeny-3.2.0.h"

and called this line
tweeny::from(0.0f).to(1.0f).during(100).via(tweeny::easing::enumerated::linear);

I'm using
Platform toolset: visual studio 2022 (v143)
c++ lang standard: std:c++20

hope this help

@mobius3
Copy link
Owner

mobius3 commented Feb 7, 2025

Thanks, I'll try to reproduce it.

@mobius3 mobius3 reopened this Feb 7, 2025
@vicenteconejerosdelacruz
Copy link
Author

uploading basic vs2022 project with the issue
tweeny-bug.zip

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