Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Error when compiling using cygwin Post 302970391 by steve120 on Wednesday 6th of April 2016 09:10:19 AM
Old 04-06-2016
Error when compiling using cygwin

I tried to compile the files in basic_dump_ex using cygwin :

/cygdrive/c/WpdPack/Examples-pcap/basic_dump_ex

$make

but I got this :

Code:
cc -g -O -mno-cygwin -I ../../include -c -o basic_dump_ex.o basic_dump_ex.c
cc: error: unrecognized command line option ‘-mno-cygwin’
GNUmakefile:17: recipe for target 'basic_dump_ex.o' failed
make: *** [basic_dump_ex.o] Error 1

In some articles , it is stated that deleting -mno-cygwin , solve the problem . However I cannot find it this -mno-cygwin and I do not know if it will solve the problem once deleted

I am still stuck . What should I do ?



Moderator's Comments:
Mod Comment Please use code tags as required by forum rules!

Last edited by RudiC; 04-06-2016 at 10:21 AM.. Reason: Added code tags.
 

10 More Discussions You Might Find Interesting

1. Programming

Error Compiling C program

Hi All, I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ). Can any body tell the resaon and remedy for the same . Iam stuck up here . Thanks (3 Replies)
Discussion started by: Vivek
3 Replies

2. Programming

Compiling Error

Hi, I have installed "Freetype2" library in my SuSe Linux 9.3 version system. When Iam compiling a program, I am getting these below errors. Undefined reference to "FT_Init_FreeType" Undefined reference to "FT_Load_Char" Please show me a solution? Thank you. With regards, Chandramouli (1 Reply)
Discussion started by: chandra80
1 Replies

3. Programming

compilation error while using cygwin

Hello, I am trying to compile a C program from Cygwin and it gives ld: not found -user32 error .. I searched for library libuser32.so and was not able locate it.. When i create only object file using gcc -c option it gets created successfully .. When i use gcc -o option , executable is not... (4 Replies)
Discussion started by: shafi2all
4 Replies

4. Shell Programming and Scripting

Error in Cygwin

Hi, I am trying to execute a Shell script file. The file has the following commands. #Return today's log file LOG_DATE=`date +%d_%b_%Y`.log echo $LOG_DATE #Return last modified date of the Log File FILE_MOD_DATE=`date -r $LOG_DATE` echo $FILE_MOD_DATE If I execute the... (6 Replies)
Discussion started by: AnneAnne
6 Replies

5. Windows & DOS: Issues & Discussions

Problem compiling C++ Code in Cygwin

Hello everyone. I just recently installed Cygwin and I am running it under Windows 7. My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
Discussion started by: Anlex
6 Replies

6. Programming

gcc compiling error

I am using gcc to compile c objects on solaris 5.10 and hit the following error messages: /usr/include/sys/vfs.h:323: error: syntax error before "statvfs64_t" /usr/include/sys/vfs.h:334: error: syntax error before "statvfs64_t" gmake: *** Error 1 The c program files were copied over from... (3 Replies)
Discussion started by: med7006
3 Replies

7. Programming

Error with compiling

Hi guys. I have a header file: unp.h like this: #ifndef _UNP_H_ #define _UNP_H_ extern ssize_t readn(int filedes, void *buff, size_t nbytes); extern ssize_t writen(int filedes, const void *buff, size_t nbytes); extern void err_quit(const char *msg); #define TRUE 1 #define FALSE 0 ... (2 Replies)
Discussion started by: majid.merkava
2 Replies

8. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

9. Solaris

ERROR while compiling

Hi guys i came across an error while compiling a c file in solaris using gcc. the error is, Undefined first referenced symbol in file bind /var/tmp//ccAr8qAh.o accept ... (4 Replies)
Discussion started by: rajeshb6
4 Replies

10. UNIX for Beginners Questions & Answers

Error while compiling

Hi I am trying to compile a binary file (CASPER: Context-Aware Scheme for Paired-End Read) but I am getting the following error: user@user-OptiPlex-780 make g++ -O2 -Wall -fopenmp -c -o merge.o merge.c merge.c:8:35: fatal error: boost/unordered_map.hpp: No such... (2 Replies)
Discussion started by: Xterra
2 Replies
Module::Install::With(3)				User Contributed Perl Documentation				  Module::Install::With(3)

   interactive
       The "interactive" function tests for an install that has a user present (or at least, one in which it is reasonable for us to present
       prompts and other similar types of things).

       Returns true if in an interactive environment, or false otherwise.

   automated_testing
       Are we currently running in an automated testing environment, such as CPAN Testers.

       This is primarily a cleaner and more human-readable equivalent of checking $ENV{AUTOMATED_TESTING} yourself, but may be improved in line
       with best practices at a later date.

   release_testing
       Are we currently running in an release testing environment. That is, are we in the process of running in a potential highly-intensive and
       high dependency bloat testing process prior to packaging a module for release.

       This is primarily a cleaner and more human-readable equivalent of checking $ENV{RELEASE_TESTING} yourself, but may be improved in line with
       best practices at a later date.

   win32
       The "win32" function tests if the Makefile.PL is currently running in a native Microsoft Windows Perl, such as ActivePerl or Strawberry
       Perl.

       This is primarily a cleaner and more human-readable equivalent of checking "$^O eq 'MSWin32'" yourself, but may be improved in line with
       best practices at a later date.

   winlike
       The "winlike" function tests if the Makefile.PL is currently running in a Microsoft Windows Perl, under either cygwin or a native Win32
       Perl.

       This is primarily a cleaner and more human-readable equivalent of checking "$^O eq 'MSWin32' or $^O eq 'cygwin'"yourself, but may be
       improved in line with best practices at a later date.

SEE ALSO
Module::Install AUTHORS
Adam Kennedy <adamk@cpan.org> COPYRIGHT
Copyright 2007 - 2012 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.16.3 2012-03-01 Module::Install::With(3)
All times are GMT -4. The time now is 06:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy