---
name: "gnet-config"
section: "1"
platform: "linux"
package: "libgnet-dev"
version: "1.1.2-1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/gnet-config"
---

# gnet-config(1)

script to get information about the installed version of GNet

## NAME

gnet-config - script to get information about the installed version of GNet

## SYNOPSIS

**gnet-config \[--prefix*\[=DIR\]*\] \[--exec-prefix*\[=DIR\]*\] \[--version\] \[--libs\] \[--cflags\] \[LIBRARIES\]**

## DESCRIPTION

*gnet-config* is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link programs that use *GNet*. It is also used internally to the .m4 macros for GNU autoconf that are included with *GNet*. *gnet-config* is depricated - use *pkg-config* for new projects.

## OPTIONS

*gnet-config* accepts the following options:

- **LIBRARIES**

  *GNet* has only the library 'gnet'.  You do not need to specify the library.  This is intended for future expansion.

- **--version**

  Print the currently installed version of *GNet* on the standard output.

- **--libs**

  Print the linker flags that are necessary to link a *GNet* program.

- **--cflags**

  Print the compiler flags that are necessary to compile a *GNet* program.

- **--prefix=PREFIX**

  If specified, use PREFIX instead of the installation prefix that *GNet* was built with when computing the output for the --cflags and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options.

- **--exec-prefix=PREFIX**

  If specified, use PREFIX instead of the installation exec prefix that *GNet* was built with when computing the output for the --cflags and --libs options.  This option must be specified before any --libs or --cflags options.

## SEE ALSO

[**glib-config**(1)](/glib-config/1.md),[**pkg-config**(1)](/pkg-config/1.md)

## COPYRIGHT

Copyright ©  2001 David A. Helder
