Netbeans compiler flags

  • From: "kodiak" < >
  • To:
  • Subject: Netbeans compiler flags
  • Date: Tue, 09 Oct 2012 14:21:52 -0400

Hi.

I'm running netbeans on ubunto and on my project I want to use the crypt 
function so I need to compile with the -lcrypt flag.

I go to Set project configuration and on Build -> C Compiler options, in 
Additional Options i set this -Wall -ansi -pedantic

This works as expected if I don't use the crypt function.

If I use the crypt function I add the additional -lcrypt to  the additional 
options.

This does not work.

On terminal to the crypt function get to work I have to compile like gcc 
"some flags" main.c -o main -lcrypt

On geany I have to set the builds commands like:
gcc -Wall -o "%e" "%f" -lcrypt 
and this works.

Want to use netbeans but can't set the flag -lcrypt.

Any ideas?

kodiak






Netbeans compiler flags

kodiak 10/09/2012

Re: Netbeans compiler flags

Leonid Lenyashin 10/09/2012

Netbeans compiler flags

kodiak 10/10/2012

Netbeans compiler flags

kodiak 10/10/2012

Re: Netbeans compiler flags

Leonid Lenyashin 10/10/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close