NAnt SDK Documentation - v0.92 |

# PkgConfigFunctions.GetCompileFlags Method

Gets the compile flags required to compile the package, including all its dependencies.

[Visual Basic]
<Function(Name:="get-compile-flags")>
Public Function GetCompileFlags( _
ByVal package As String _
) As String
[C#]
[Function(Name="get-compile-flags")]
public string GetCompileFlags(
string package
);

#### Parameters

package
  The package for which the compile flags should be retrieved.

#### Return Value

The pre-processor and compile flags required to compile the package.

#### Exceptions

Exception Type | Condition
--- | ---
Win32Exception | `pkg-config` could not be started.
ArgumentException | package does not exist.

#### See Also

PkgConfigFunctions Class | NAnt.Core.Functions Namespace