Skip to content

How to Build on Windows #11

@dwvisser

Description

@dwvisser

I am trying to build libfec on Windows using “Build Tools for Visual Studio” and running Visual Studio Code with the C/C++ Extension Pack and CMake Tools. It just doesn't build for me. Here is the start of the long list of compiler warnings and errors I get when trying to compile the fec target:

[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,66): error C2061: syntax error: identifier '__attribute__' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,66): error C2059: syntax error: ';' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,90): error C2143: syntax error: missing ')' before 'constant' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,90): warning C4255: 'aligned': no function prototype given: converting '()' to '(void)' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,92): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,93): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,94): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(49,17): error C2065: 'Branchtab27': undeclared identifier [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(49,16): error C2109: subscript requires array or pointer type [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(50,17): error C2065: 'Branchtab27': undeclared identifier [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(50,16): error C2109: subscript requires array or pointer type [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]

Another clue: libraries like getopt.h are not found by the check_include_file test. If anyone out there knows the secret sauce to get this to work, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions