跳转至内容

FLTK/编译

来自维基教科书,开放世界的开放书籍

fltk2-config 命令提供有用的信息。

Usage: fltk2-config [OPTIONS]
Options:
	[--prefix[=DIR]]  return/set where FLTK is installed
	[--exec-prefix[=DIR]]
	[--version]
	[--api-version]

Options telling what we are doing:
	[--use-gl]        use GL
	[--use-images]    use extra image formats (PNG, JPEG)
	[--use-glut]      use glut compatibility layer
	[--use-forms]     use forms compatibility layer

Options telling what information we request:
	[--cflags]        return flags to compile C using FLTK
	[--cxxflags]      return flags to compile C++ using FLTK
	[--ldflags]       return flags to link against FLTK
	[--ldstaticflags] return flags to link against static FLTK library
                                          even if there are DSOs installed
	[--libs]          return FLTK libraries full path for dependencies
	[--cxx]           return name of C++ compiler used to build FLTK
	[--cc]            return name of C compiler used to build FLTK

Option to compile and link an application:
	[-g]              compile the program with debugging information
	[--compile program.cxx]
        [--post program]

例如,--cxxflags--ldflags 选项提供编译和链接应用程序所需的标志。

静态链接

[编辑 | 编辑源代码]
华夏公益教科书