cc

Generic Makefile not working on FreeBSD

依然范特西╮ 提交于 2019-12-23 13:24:29
问题 Please note that this is not a duplicate of the other questions named generic makefile. I have followed all of the instructions on other questions about generic makefiles, and this is the code I have come up with from that: CFLAGS = -c CC = cc SOURCES = $(wildcard *.cc) OBJECTS = $(patsubst %.cc,%.o,%(SOURCES)) EXEC = run all: build clean build: $(OBJECTS) $(CC) $(OBJECTS) -o $(EXEC) %.o: %.cc $(CC) $(CFLAGS) $< clean: rm *.o However, when I execute make with a file called test.cc in my

Generic Makefile not working on FreeBSD

假如想象 提交于 2019-12-23 13:24:24
问题 Please note that this is not a duplicate of the other questions named generic makefile. I have followed all of the instructions on other questions about generic makefiles, and this is the code I have come up with from that: CFLAGS = -c CC = cc SOURCES = $(wildcard *.cc) OBJECTS = $(patsubst %.cc,%.o,%(SOURCES)) EXEC = run all: build clean build: $(OBJECTS) $(CC) $(OBJECTS) -o $(EXEC) %.o: %.cc $(CC) $(CFLAGS) $< clean: rm *.o However, when I execute make with a file called test.cc in my

error occurs when installing cryptography for scrapy in virtualenv on OS X [closed]

核能气质少年 提交于 2019-12-23 08:35:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I was installing scrapy with pip in virtualenv on OS X 10.11 . When it's installing cryptography, it said: building '_openssl' extension cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict

Solaris 10 CC Preprocessor bug causes undefined symbols

限于喜欢 提交于 2019-12-20 02:12:09
问题 I have a very very simple C++ file as follows that I'm compiling on Solaris 5-10 with the CC compiler. Here is the source code in my file myTest.C: #include <map> std::map<int, bool> myVar2; I would like to first run the CC pre-processor on this file, examine the pre-processed file, and then compile that pre-processed file into an object file. I call this "indirect-compiling". To do this, I do the following: % CC -P -o myFile_indirect.i myFile.C % CC -c -o myFile_indirect.o myFile_indirect.i

Why am I getting this error: “data definition has no type or storage class”?

五迷三道 提交于 2019-12-18 13:24:46
问题 #include <stdio.h> #include <stdlib.h> struct NODE { char* name; int val; struct NODE* next; }; typedef struct NODE Node; Node *head, *tail; head = (Node*) malloc( sizeof( Node ) ); //line 21 And I compiling like this: cc -g -c -o file.tab.o file.tab.c I'm getting this error message: file.y:21:1 warning: data definition has no type or storage class [enabled by default] 回答1: It looks like the line head = (Node*) malloc( sizeof( Node ) ); //line 21 is outside the main() function. You can't do

how to install cc on mac os 10.8 without paying for developer program? [closed]

只愿长相守 提交于 2019-12-13 08:55:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Several python libraries stopped working after upgrade to Mac OS 10.8. Attempt to re-install them through easy_install or pip brings error message "-bash: cc: command not found". XCode is installed. Attempt to install Command line tools for XCode insist on enrolling into developer program. I don't want to pay

Installing lxml OSX Mavericks 10.9.2

末鹿安然 提交于 2019-12-13 05:15:27
问题 I am trying to install lxml on 10.9.2 Mavericks and i used all the solutions mentioned here before but i seem to get a different error, the argument '-mno-fused-madd' is unknown, i believe it just triggered a warning back then, but now it throws an error here's the log cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG

On Solaris, are libraries compiled with gcc usable the same way as for libs generated with cc?

被刻印的时光 ゝ 提交于 2019-12-12 18:26:45
问题 I am currently trying to compile libxml2 on Solaris . When I run the ./configure script provided with the sources, the gcc and g++ compilers are automatically used. However, I would like to use cc and CC compilers. So I run : ./configure CC=cc CXX=CC It works but then, when I run " make ", I get some errors which prevent the libraries to be generated. When gcc and g++ are used, everything goes well with no errors, so I was wondering: can I use the librairies generated with gcc/g++ the same

MPICH2 compilation issue using Cygwin

半腔热情 提交于 2019-12-12 10:20:43
问题 Attempting to compile MPICH2 on a Windows machine using Cygwin. A bit of relevant information $ uname -> CYGWIN_NT-6.1 $ gcc --version -> gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MPICH2 Version: 1.5 Configuration seems to have completed appropriately, but during compilation I

“TypeError: Error #1010: A term is undefined and has no properties” in AS3

▼魔方 西西 提交于 2019-12-12 03:05:37
问题 I'm creating an Android game using Adobe Animate CC for our thesis, and every time I test my work, at first, it works fine, but when I go to the main game, there's an error appears: Error #1010: A term is undefined and has no properties at RECOVER_RECOVER_dmthesis_demo_ver__paggumanarename_Scene14_fla::MainTimeline/frame1()[RECOVER_RECOVER_dmthesis_demo_ver__paggumanarename_Scene14_fla.MainTimeline::frame1:160] And this is my code (including commented code): import flash.events.MouseEvent;