compilation

error when compiling java program 'Cannot find symbol'

本小妞迷上赌 提交于 2019-12-12 01:45:15
问题 I get these errors when trying to compile 'PongMain.java' with the javac -g command in terminal: Errors: tests-iMac:~ finnfallowfield$ javac -g /Users/finnfallowfield/Desktop/Developer/Java\:Javascript/Game\ Development/Java\ Pong/src/main/pong/PongMain.java /Users/finnfallowfield/Desktop/Developer/Java:Javascript/Game Development/Java Pong/src/main/pong/PongMain.java:9: error: cannot find symbol import main.pong.Ball; ^ symbol: class Ball location: package main.pong /Users/finnfallowfield

Compile git on shared host without zlib-devel

送分小仙女□ 提交于 2019-12-12 01:33:55
问题 I'm trying to compile and install git on a shared RHEL5 host, but have no zlib-devel libraries installed. I've extracted the libraries from the RPM, but can't work out how to get make to recognise them. I get the following message: cache.h:17:18: error: zlib.h: No such file or directory Have tried the following: CFLAGS='-I$HOME/root/usr/include -L$HOME/root/usr/lib64' make but this doesn't seem to work. I've also tried setting C_INCLUDE_PATH='$HOME/root/usr/include Again, no luck. Any ideas?

Why do I have to double run make to fully compile my program? GNU c++

断了今生、忘了曾经 提交于 2019-12-12 00:27:26
问题 Im terrible with understanding what goes on behind the scenes when running programs. On my schools server, I just use gcc and pretty much the same code every time I need to make a makefile lol. I downloaded my program to debug it in NetBeans and after hours/days.. I finally ALMOST have everything working. After looking at a few posts on here and other sites, I saw that for some reason I need to use g++ instead of gcc to compile since I'm using a MacBook. Which I don't really understand.. But

Android Studio: How to build command-line Android activity with no view (NOT how to build *with* command line)

依然范特西╮ 提交于 2019-12-12 00:16:51
问题 I need to build a command-line tool that I can run in an Android shell. This question is not about how to build using command-line tools, which is pretty much all I find when I search SO/google for this question. What I can do: Write a simple Java jar that runs from app_process What I want: A tool that uses Android libraries (such as the packagemanager) that runs from the command line (such as an 'adb shell') and then exits - so not an App, doesn't have a view and isn't really following the

C++, template, compiler error [duplicate]

痴心易碎 提交于 2019-12-11 23:30:41
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Why doesn't a derived template class have access to a base template class' identifiers? Translating of the following program A.h #ifndef A_H #define A_H template <class T> class A { protected : T a; public: A(): a(0) {} }; #endif B.h #ifndef B_H #define B_H template <class T> class A; template <class T> class B: public A <T> { protected: T b; public: B() : A<T>(), b(0) {} void test () { b = 2 * a;} //a was not

compile problem C++

狂风中的少年 提交于 2019-12-11 23:30:10
问题 Hey guys. I need to compile some project. I installed Visual C++ 6.0 + Microsoft Platform SDK 2003 from there http://www.microsoft.com/downloads/en/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#requirements I also added SDK paths under Tools->Options->Directories and moved them to top. But I am still getting this errors when compiling... c:\users\admin\downloads\microsoft visual c++ 6.0 standard edition\vc98\include\new(9) : fatal error C1083: Cannot open include

Eclipse C compilation issue

∥☆過路亽.° 提交于 2019-12-11 22:01:19
问题 I 've built a C program in eclipse it was going fine with the compilation but at some point I changed a part of my code and then the console kept having the same output no matter how many times i build it or run it or change the code once more.So I erased the binary file hoping to start from new but then it keeps popping out binary not found.What should I do please help.Thanks in advance. 回答1: This is caused by a compilation or linking or make error. Check the Problems view in Eclipse (you

Linking to modules in external directory Compaq Visual Fortran command prompt

不羁的心 提交于 2019-12-11 21:31:02
问题 I know that this question is VERY specific, but I am using "Compaq Visual Fortran Optimizing Compiler, Version 6.5" (Fortran 90). To compile, e.g., I use: f90 constants.f90 main.f90 /compile_only And I'm not sure how to link aside from using the command "DF", but as far as I understand, that compiles AND links AND outputs a .exe to be executed. My problem is that I have a few modules that I USE in my main program, and I want those modules to be in one folder and my main program to be in

ClassNotFoundException when loading a class at runtime

半城伤御伤魂 提交于 2019-12-11 19:53:39
问题 Using the Bukkit-API I'm currently trying to create a plugin which can compile java code of a given pastebin link at runtime and execute that code. Everything is working so far except for one thing: I'm getting a ClassNotFoundException when I'm trying to access one of the already loaded plugins. (I'm not getting an exception when I'm using Bukkit-API methods!) All plugin jars have been added to the classpath; it currently looks like this: /home/cubepanel/test-network/jars/craftcubbit.jar:

C++ Visual Studio “Disgusting Macro Hack” compilation issue

末鹿安然 提交于 2019-12-11 19:17:31
问题 I am trying to re-create the vector class for my own understanding. I came across an issue recently with Visual Studio 2013 while trying to compile this code. I am getting an error for each 'vector' keyword that states: I do not know if this is a range error within my class definition or if this is something else. I have not played with any settings. #include "../../../std_lib_facilities.h" class vector{ int sz; double* elem; //pointer to the first element (of type double) public: vector(int