Skip to content

Fix error C2020: 'parms': 'struct' member redefinition#91

Open
andywolk wants to merge 1 commit into
masterfrom
windowsfix
Open

Fix error C2020: 'parms': 'struct' member redefinition#91
andywolk wants to merge 1 commit into
masterfrom
windowsfix

Conversation

@andywolk

@andywolk andywolk commented Feb 5, 2025

Copy link
Copy Markdown
Member

No description provided.

@andywolk andywolk added the bug Something isn't working label Feb 5, 2025
@coppice-git

Copy link
Copy Markdown
Collaborator

I don't know why the Windows compiler might be complaining about this, but the suggested patch is an ugly way to deal with the problem. I'll produce something cleaner.

@coppice-git

Copy link
Copy Markdown
Collaborator

I just checked out the spandsp repo on a Windows 11 PC with Visual Studio 2022. I compile and do not see the C2020 error. Is this error with a different version of Visual Studio?

@andywolk

andywolk commented Feb 6, 2025

Copy link
Copy Markdown
Member Author

@coppice-git
This is when FreeSWITCH is compiled against SpanDSP master on Windows.
There is a branch that you can clone and try building. You will see those errors:
https://github.com/signalwire/freeswitch/commits/spandspwindows/

@andywolk

andywolk commented Feb 6, 2025

Copy link
Copy Markdown
Member Author

and yes Visual Studio 2022 is the main version to use.

@andywolk

Copy link
Copy Markdown
Member Author

@coppice-git SpanDSP headers are broken to use on Windows without this PR. Therefore no way to use the latest SpanDSP master.

@andywolk

andywolk commented Sep 9, 2025

Copy link
Copy Markdown
Member Author

@coppice-git ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants