SlideCombine/compile_simple.bat
yuuko 3ea2d0fa25 创建简化版C语言PDF书签合并工具
由于原版本编译错误,创建简化版本:
- slide_combine_simple.c: 核心功能实现
- compile_simple.bat: 简化编译脚本

特点:
- 解决枚举冲突问题
- 简化界面和功能
- 保留核心排序算法
- 支持GCC和MSVC编译

运行:compile_simple.bat

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 13:35:09 +08:00

42 lines
980 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo 编译简化版PDF书签合并工具...
echo 检查编译器...
gcc --version >nul 2>&1
if %errorlevel% neq 0 (
echo 未找到GCC尝试MSVC...
goto :try_msvc
)
echo 使用GCC编译...
gcc -mwindows -O2 -Wall slide_combine_simple.c -o slide_combine_simple.exe -luser32 -lgdi32 -lcomctl32 -lshlwapi -lole32
if %errorlevel% equ 0 (
echo 编译成功!
goto :success
)
echo GCC编译失败尝试MSVC...
:try_msvc
cl /EHsc /O2 slide_combine_simple.c /link user32.lib gdi32.lib comctl32.lib shlwapi.lib ole32.lib
if %errorlevel% equ 0 (
echo MSVC编译成功
goto :success
)
echo 编译失败请安装MinGW-w64或Visual Studio
pause
exit /b 1
:success
if exist "slide_combine_simple.exe" (
echo 创建发布包...
if not exist "release" mkdir release
copy "slide_combine_simple.exe" "release\"
echo 完成!程序位于 release\slide_combine_simple.exe
) else (
echo 错误:未找到输出文件
)
pause