Change made to fix the following error:
``` /usr/bin/ld: CMakeFiles/pacat.dir/pacat_advanced.cpp.o: in function `main': pacat_advanced.cpp:(.text+0x162b): multiple definition of `main'; CMakeFiles/pacat.dir/pacat_simple.cpp.o:pacat_simple.cpp:(.text+0x0): first defined here collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/pacat.dir/build.make:133: pacat] Error 1 make[1]: *** [CMakeFiles/Makefile2:272: CMakeFiles/pacat.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ```
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
@@ -63,7 +63,6 @@ endif()
|
||||
target_link_libraries(ReMixer-Test PUBLIC ReMixer)
|
||||
|
||||
add_executable(pacat pacat_simple.cpp
|
||||
pacat_advanced.cpp
|
||||
src/windows/ReMixer.cpp
|
||||
include/ReMixer/PulseSubsystem.h)
|
||||
target_link_libraries(pacat pulse-simple pulse)
|
||||
@@ -77,4 +76,4 @@ target_link_libraries(pacat_advanced pulse)
|
||||
if (WIN32)
|
||||
add_executable(winsoundcat winsoundcat.cpp)
|
||||
target_link_libraries(winsoundcat)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user