Cannot compile arduino project
Hi guys,
I'm trying to work with arduino IDE, but I cannot compile even Blink example. I'm always seeing following error:
/usr/share/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: cannot find -lm
Any ideas how I can fix it?
Worked also for my Asus laptop!
CoolGenie wrote:
This works for me too. Thanks!
kircul wrote:
Solution was found in discussion in package arduino.
In short words:
You need to install package avr-gcc
Replace build-in avr-gcc compiler by same from package installed on previous step:
# cd /usr/share/arduino/hardware/tools/avr/bin
# mv ./avr-gcc ./avr-gcc-backup
# ln -s /usr/bin/avr-gcc ./
It works for me.
Similar Messages
-
Cannot compile Library project in Flash builder 4: Unable to locate specified base class
I am migrating from Flex builder 3 to Flash builder 4, during that process I found that Flash builder could'nt compile Flex Library projects which contains components in the form of mxml files. Compiler throws "Unable to locate specified base class".
I have narrowed it down to by creating a flex library project named test library, below its screenshot with its package structure
ControlA is based on componentA
when i compile this project, mxml compiler throws this error
Unable to locate specified base class 'components.componentA' for component class 'ControlA'.
I cannot upload project code because file uploads are disabled on this forum so I am going to paste the code for both componentA and controlA
componentA
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" width="400" height="300">
</mx:Canvas>
ControlA
<?xml version="1.0" encoding="utf-8"?>
<components:componentA xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" width="400" height="300">
</components:componentA>
To further test it, I have made another library project with same package structure using pure AS3, and it compiled without errorsIt might be this happens and other errors if you forget to Run Flash Builder 4.5 Buritto and startup the other version FB4.
It uses the same project listings and that can be confusing since you're not expecting the old version to be aware of new Buritto (MobileApplications) projects you added (thinking) only to the BETA version installed elseware no doubt.
Well it might not be your problem but worthy of noting for other's I'm sure.
Otherwise you've double checked you're using SDK 4.5 Hero with it too! right? -
Cannot compile C++ project in xcode
Hello
I have a C++ command line project that I am trying to get to compile with xcode. its made of 5 .cpp files and 4 header files. I can get it to compile using my Makefile with no errors, but I would rather not have to use a terminal window every time I need to check how I'm doing. when I try to build it with xcode, I get 90 errors, such as error: forward declaration of 'struct rm'. all the errors are in libraries that I did not create, so I am thinking it has to do with the settings I am using. I created the project with c++ tool, but I do not know what else to try, and a search yielded no help.
I would appreciate any help.
thankshere is what is displayed when I run my makefile in terminal:
make
g++ -ansi -Wall -g -c appointment.cpp
g++ -ansi -Wall -g -c calendar.cpp
g++ -ansi -Wall -g -c day.cpp
g++ -ansi -Wall -g -c time.cpp
g++ -ansi -Wall -g -c year.cpp
g++ -ansi -Wall -g -o calendar.out appointment.o calendar.o day.o time.o year.o
with the exact same code using build in xcode, I get this from the results:
Building target “calendar” of project “calendar” with configuration “Debug” — (90 errors)
cd /Users/kiem/Downloads/hw3/calendar
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DGLIBCXXDEBUG=1 -DGLIBCXX_DEBUGPEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/calendar.hmap -F/Users/kiem/Downloads/hw3/calendar/build/Debug -I/Users/kiem/Downloads/hw3/calendar/build/Debug/include -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/kiem/Downloads/hw3/calendar/calendar.cpp -o /Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/Objects-normal/i386/calendar.o
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function '_InIter std::timeget<CharT, InIter>::_M_extract_via_format(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*, const _CharT*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_weekday(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_monthname(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_year(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
cd /Users/kiem/Downloads/hw3/calendar
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DGLIBCXXDEBUG=1 -DGLIBCXX_DEBUGPEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/calendar.hmap -F/Users/kiem/Downloads/hw3/calendar/build/Debug -I/Users/kiem/Downloads/hw3/calendar/build/Debug/include -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/kiem/Downloads/hw3/calendar/appointment.cpp -o /Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/Objects-normal/i386/appointment.o
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function '_InIter std::timeget<CharT, InIter>::_M_extract_via_format(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*, const _CharT*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_weekday(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_monthname(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_year(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
Build failed (90 errors)
for the #includes, here's an example of one of my header files:
#ifndef APPOINTMENT_H
#define APPOINTMENT_H
#include "time.h"
#include <cstring>
#include <iostream>
using namespace std;
class Appointment
public:
Appointment();
Appointment(Time s, Time e, char *sub, char *loc);
Appointment& operator=(Appointment& rhs)
start = rhs.start;
endt = rhs.endt;
subject = new char[strlen(rhs.subject)+1];
location = new char[strlen(rhs.location)+1];
strcpy(subject,rhs.subject);
strcpy(location,rhs.location);
return *this;
Time start, endt;
char *subject, *location;
void getAppt(char &str);
void addAppointment();
void editCsv(int &nmonth, int &nday, Appointment &nappt, char *amorpm[3]);
friend ostream& operator>>(ostream& outty, Time& t);
}; //class Appointment
#endif
the class I am in uses fedora computers and the program works fine there. I just want to be able to debug without having to ssh every time. also i can use a C command line tool without programs, if that helps. -
I have a problem with my setup. My labview project has been running perfectly till today, when I cannot compile any project. My project works perfectly in another computer. Same with "simpler" projects that I have. I cannot compile. I have tried to compile an empty vi, but the problem is the same.
I decided to remove all labview components from my host computer. I removed everything from the host (NI-MAX/my-computer/sofware, all programs selected) and reinstalled Labview 2013. After doing that, the problem still happens. Attached you have a picture where you can check which error appears. It even happens with empty fpga VI.
I am running Labview 2013 in an Windows 7 64bit. Xilinx 14.4 13.0.0
My software package worked perfectly till today. Maybe something got corrupted...
Any suggestion? Thanks in advance
Pablo
Attachments:
Labview error before compilation.png 24 KBYou've re-installed NI things. Butm did you try re-installing the compiler as that sounds like the source of your problems?
For future reference, you should bring up FPGA in the subject, in the first sentence, or pretty much anywhere other than the end of your post. It helps others understand your issue to know what we are looking at from the start. -
Cannot compile Java files or create Java Project
Hi,
I cannot compile java files and also didn't see any option
for creating java project using flex 2 builder.
Actually am trying to create a FDS project with an option to
compile on the server. I am using Weblogic 8.1 SP5 as my server.
thank you
sunhi
this is may jvm.config file. Can anyone tell me if it is
right because all the fields are blank.
# VM configuration
# Where to find JVM, if {java.home}/jre exists then that JVM
is used
# if not then it must be the path to the JRE itself
# If no java.home is specified a VM is located by looking in
these places in this
# order:
# 1) JAVA_HOME environment variables (same rules as java.home
above)
# 2) bin directory for java.dll (windows) or
lib/<ARCH>/libjava.so (unix)
# 3) ../jre
# 4) registry (windows only)
java.home=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK 2.0\jre
# Arguments to VM
java.args=-ea -Xmx384m
# Environment variables we care about, whitespace-separated
env=
# java.class.path - use this for adding individual jars or
# directories. When directories are included they will be
searched
# for jars and zips and they will be added to the classpath
(in
# addition to the directory itself), the jar to be used in
launching
# will be appended to this classpath
java.class.path=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK
2.0\jre
# where to find shared libraries, again use commas to
separate entries
java.library.path=
thanks
sun -
Cannot build multifile project
Hello All,
I am new to Java, and a bit lost. I've done a couple of single file programs on JBuilder, and those worked OK. Now I have a larger school project with numerous classes in numerous files. I have all the files in the same folder (the project folder). When I try to build the project, the references to classes in other files are not recognized. I am running on Windows XP, and have added the paths to the bin folders in jdk1.5 and jre1.5 in the "Path" variable of environment variables. I have also added ".;" on someone's recommendation. However, I still cannot build this project, even though I know it is a working one (tested on another system.) Any help would be appreciated. Thank you.Java files can be structured in packages.
If you find as first occurrence:
package org.mywork.gui;then you should place the file in a subdirectory org/mywork/gui (3 directories) of your sources.
Compile from the top (the directory in which org is placed.
The package statement is optional, but it is good style and very convenient to use packages.
I am a bit late with this answer, so you'll probably found out already. -
Error in compiling sample project of Indesign CC 2014
Hi,
I am trying to compile sample project of Indesign CC 2014 using VC++ 2013. but it is showing me following error:
"error C2039: 'assert_not_arg' : is not a member of 'boost::mpl' (..\..\..\source\sdksamples\basicmenu\BscMnuSuiteLayoutCSB.cpp) D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\boost_libraries\boost\iterator\detail\facade_iterator_catego ry.hpp"
Build result is also showing "Unknown compiler version - please run the configure tests and report the results".
I have added following path in "Project properties->VC++ directories->Include directories"
D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\boost_libraries
D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\adobe_source_lib
Please let me know if any kind of settings I need to change in VC++ 2013.
I am using application Indesign CC 2014 and VC++ 2013 and OS is Windows 8
Thanks in advance,
PriyankaYou probably need to post this over in the InDesign SDK forum, but I'm not sure that's even the right place. Can you explain in plain language what this "project" is?
-
Error in compiling sample project of photoshop CC 2014
Hi,
I am trying to compile sample project "Outbound" of Photoshop CC 2014, but it is showing me error, "Parse Issue: Unknown type name 'DialogPtr' " in DialogUtilities.h file .
DialogUtilities.h is part of "samplecode:common:include" folder. I have also added this path in header search path, but it is still not working.
Application I am using is "Photoshop CC 2014"
and Xcode version is "Version 4.6.3 (4H1503)"
If anyone have idea about this then please let me know.
Thanks,
PriyankaAre you using the CC 2014 release of the SDK?
The DialogUtilities.h for mac do not work. They are the old Carbon API's. See the Dissolve example for an Objective-C UI.
I would comment out the DialogUtilities.h include and other associated headers for Carbon UI. Some Carbon calls still work that are unrelated to UI. -
Cannot deploy webdynpro project from SP11 of developer studio
Hi All,
I have recently upgraded was java from SP09 to SP11 of netweaver 2004s. I have also upgraded developer studio to SP11. Now I cannot deploy webdynpro project from upgraded developer studio. SP09 developer studio can still deploy webdynpro projects.
Please help.
Thanks in advance .
RaktimHi,
R u trying to deploy an old DC in the upgraded studio? Is the same happening for deploying any newly created local webdynpro project? Create a simple local project and check if same problem occurs.
Regards,
Vijai -
Cannot re-open project after Out of Memory message
Hi,
Problem with Encore CS3.
Here is my problem: I have spent about 2 weeks working on a DVD project made of 2h movie (about 100 files and 2h of subtitles) and about 20 slideshows with a few hundred pictures and music for each slideshow. There are about 15 pages of menus and submenus. All in all it was getting longer and longer to save and open but it was okay.
I eventually tried to produce the DVD in a hard drive folder. Then, after about 14h of computation I got the message "Out of memory". I had to quit at that point. Since then I cannot open the project anymore!
When I open the project I get a window telling me how long it will take to open the project (with an incredibly wrong estimate by the way), once reached the 100%, it never gives me control back anymore. I have to kill the process with the task manager. I have tried to let it work for hours but that does not change much.
The hardware configuration is the following:
At the crash time: Windows XP pro SP2, Duo core processor, 2 GB RAM, a couple of 500GB hard drives connected in USB.
I have since added 2 more GB RAM and now have 4GB with 3.4GB detected (as we all know Windows 32 cannot handle the full 4GB). I thought the add of the memory would make a difference. It does not! Encore uses up to 1.5GB of Ram while trying to open the project (the task manager tells me).
I have tried many many times to re-open my project as I spent too much time on it to give-up easily.
I actually managed to reopen the project a couple of times in a kind of degraded mode by removing some files from the "Transcodes" directory. I then get an error message and sometimes manage to get in. I managed twice amd twice immediately saved the project under a new name (over 7GB of files).
The problem is: I have got a couple of error message while trying to re-setup the project as I left it (remember it was a degraded mode with missing files). I never managed to go to the build stage again and I cannot reopen my project consistently. I now have 3 versions of it. None is working. I am back to starting point, unable to open the project.
If anyone has a solution to recover my project, it is much more than welcome! I hate the idea to start from scratch again. If I have to do so, I am seriously thinking to switch to Vegas and DVD architect because Premiere is unable to handle my new HDV files and I start to be fed-up with all the CS3 bugs. Saying that learning these 2 tools was long enough to not wish to learn 2 new ones.
Thanks for taking time to read all my message.
Thanks in advance for your answers.Well, here is the solution to my own problem. I give it to you in case you get the same problem one day.
The solution is as simple as impossible to find on your own: launch Bridge before launching Encore! Yes, that's it. If Bridge is running when you start Encore and open your project, it all works just fine.
In my case, the project was a bit damaged as many files where not located properly. I just hit the "Skip all" button when prompted and got into my project. Then I re-assigned each unfound file (in italic) with the original one. That was quite easy in the end.
I find it incredible that Encore will work only when Bridge is launched. In that case, I can only recommend to have plenty of RAM. In all cases it is a nasty bug.
I hope it will help someone some day.
Cheers. -
Problems while compiling a project that uses Database Adapter
Hi,
I am working on a small WebService that uses the Database Adapter to connect with the Oracle-Lite database. The process is a synchronous process which has client and DatabaseService as the partner link. The goal of this project is to get two inputs from the user and send it over to the DatabaseService for it to select the rows from the table based on the inputs sent. The process activity has an invoke function which had two varibles Invoke_1_inputVarible and Invoke_1_outputVarible. I have included the *.xds that contains the database schema. When I compile the project i get the following error
Error(38): [Error ORABPEL-10035]: wrong messageType [Description]: in line 38 of "D:\OraBPELPM_2\integration\jdev\jdev\mywork\Workspace1\Login\Login.bpel", messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}EmployeeRole_msg" of variable "Invoke_1_dsSelect_InputVariable" does not match the expected messageType "{http://xmlns.oracle.com/pcbpel/adapter/db/ds/}dsSelect_inparameters" in <invoke>. [Potential fix]: make sure the correct variable is used in invoke.
My question is how do I assign correct messageType for the variables.
XSD File:
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" elementFormDefault="unqualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="EmployeeRoleCollection" type="EmployeeRoleCollection"/>
<xs:element name="EmployeeRole" type="EmployeeRole"/>
<xs:complexType name="EmployeeRoleCollection">
<xs:sequence>
<xs:element name="EmployeeRole" type="EmployeeRole" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EmployeeRole">
<xs:sequence>
<xs:element name="empid" type="xs:decimal" minOccurs="0" nillable="true"/>
<xs:element name="password" type="xs:string" minOccurs="0" nillable="true"/>
<xs:element name="role" type="xs:string" minOccurs="0" nillable="true"/>
<xs:element name="uid" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="findAllInputParameters" type="findAll"/>
<xs:complexType name="findAll">
<xs:sequence/>
</xs:complexType>
<xs:element name="dsSelectInputParameters" type="dsSelect"/>
<xs:complexType name="dsSelect">
<xs:sequence/>
</xs:complexType>
</xs:schema>
DatabaseService.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login"
schemaLocation="EmployeeRole_table.xsd"/>
</schema>
</types>
<message name="EmployeeRoleCollection_msg">
<part name="EmployeeRoleCollection" element="top:EmployeeRoleCollection"/>
</message>
<message name="dsSelect_inparameters">
<part name="dsSelect_inparameters" element="top:dsSelectInputParameters"/>
</message>
<message name="EmployeeRole_msg">
<part name="EmployeeRole" element="top:EmployeeRole"/>
</message>
<portType name="ds_ptt">
<operation name="dsSelect">
<input message="tns:dsSelect_inparameters"/>
<output message="tns:EmployeeRoleCollection_msg"/>
</operation>
<operation name="queryByExample">
<input message="tns:EmployeeRole_msg"/>
<output message="tns:EmployeeRoleCollection_msg"/>
</operation>
</portType>
<binding name="ds_binding" type="tns:ds_ptt">
</binding>
<service name="ds">
<port name="ds_pt" binding="tns:ds_binding">
<jca:address location="eis/DB/BPELSamples"
/>
</port>
</service>
</definitions>
<b>Login.bpel</b>
<process name="Login" targetNamespace="http://xmlns.oracle.com/Login" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/ds/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/Login" xmlns:client="http://xmlns.oracle.com/Login" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<partnerLinks>
<partnerLink name="client" partnerLinkType="client:Login" myRole="LoginProvider"/>
<partnerLink name="PartnerLink_1" partnerRole="ds_role" partnerLinkType="ns1:ds_plt"/>
</partnerLinks>
<variables>
<variable name="inputVariable" messageType="client:LoginRequestMessage"/>
<variable name="outputVariable" messageType="client:LoginResponseMessage"/>
<variable name="Invoke_1_dsSelect_InputVariable" messageType="ns1:EmployeeRole_msg"/>
<variable name="Invoke_1_dsSelect_OutputVariable" messageType="ns1:EmployeeRoleCollection_msg"/>
</variables>
<sequence name="main">
<receive name="receiveInput" partnerLink="client" portType="client:Login" operation="process" variable="inputVariable" createInstance="yes"/>
<assign name="Assign_1">
<copy>
<from variable="inputVariable" part="payload"/>
<to variable="Invoke_1_dsSelect_InputVariable" query="/ns2:EmployeeRole"/>
</copy>
</assign>
<invoke name="Invoke_1" partnerLink="PartnerLink_1" portType="ns1:ds_ptt" operation="dsSelect" inputVariable="Invoke_1_dsSelect_InputVariable" outputVariable="Invoke_1_dsSelect_OutputVariable"/>
<assign name="Assign_2">
<copy>
<from variable="Invoke_1_dsSelect_OutputVariable" part="EmployeeRoleCollection"/>
<to variable="outputVariable" part="payload"/>
</copy>
</assign>
<reply name="replyOutput" partnerLink="client" portType="client:Login" operation="process" variable="outputVariable"/>
</sequence>
</process>
Thanks,
NivHelp! SOS....
Niv -
PLS-00304: cannot compile body of package without its specification
Hi all,
While compiling the below pasted package , I got the following error msg.
PL/SQL: Compilation unit analysis terminated
PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
without its specification
PLS-00905: object HDOT.EDR_RPT_CLASS_BY_TAWT_PACKAGE is invalidBut I believe that have declared package and ppackage body specification correctly. Please could anyone help me to find out the error
CREATE OR REPLACE PACKAGE edr_rpt_class_by_tawt_package AS
PROCEDURE edr_rpt_gen_class_by_tawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
PROCEDURE edr_rpt_gen_class_by_fawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
PROCEDURE edr_rpt_gen_class_by_sawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
PROCEDURE edr_rpt_gen_class_by_triawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
PROCEDURE edr_rpt_gen_class_by_qawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
FUNCTION class_count
in_lane_id edr_rpt_by_ranges_output.lane_id%TYPE,
in_direction_id edr_rpt_by_ranges_output.direction_id%TYPE,
in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_interval_end_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_axle_wt_min edr_cls_by_tawt_report_data.group_weight%TYPE,
iin_axle_wt_max edr_cls_by_tawt_report_data.group_weight%TYPE,
in_class_min edr_cls_by_tawt_report_data.vehicle_class%TYPE,
in_class_max edr_cls_by_tawt_report_data.vehicle_class%TYPE
RETURN VARCHAR2;
END edr_rpt_class_by_tawt_package;
CREATE OR REPLACE PACKAGE BODY edr_rpt_class_by_tawt_package AS
c_front_axle_only CONSTANT axle_class.group_type%TYPE := -1;
c_axle_single_group_type CONSTANT axle_class.group_type%TYPE := 1;
c_axle_tandem_group_type CONSTANT axle_class.group_type%TYPE := 2;
c_axle_tridem_group_type CONSTANT axle_class.group_type%TYPE := 3;
c_axle_quadrem_group_type CONSTANT axle_class.group_type%TYPE := 4;
c_kips_conversion_unit_id CONSTANT units.unit_id%TYPE := 8;
v_report_axle_group_type axle_class.group_type%TYPE := 0;
FUNCTION class_count
in_lane_id edr_rpt_by_ranges_output.lane_id%TYPE,
in_direction_id edr_rpt_by_ranges_output.direction_id%TYPE,
in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_interval_end_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_axle_wt_min edr_cls_by_tawt_report_data.group_weight%TYPE,
in_axle_wt_max edr_cls_by_tawt_report_data.group_weight%TYPE,
in_class_min edr_cls_by_tawt_report_data.vehicle_class%TYPE,
in_class_max edr_cls_by_tawt_report_data.vehicle_class%TYPE
RETURN NUMBER
IS
my_count_result NUMBER(18);
BEGIN
SELECT NVL(SUM(vehicle_count), 0 )
INTO my_count_result
FROM
SELECT site_lane_id
FROM edr_rpt_tmp_report_lanes
WHERE edr_rpt_tmp_report_lanes.output_lane_id = in_lane_id
AND edr_rpt_tmp_report_lanes.output_direction_id = in_direction_id
) report_lanes
JOIN edr_cls_by_tawt_report_data
ON edr_cls_by_tawt_report_data.site_lane_id = report_lanes.site_lane_id
WHERE edr_cls_by_tawt_report_data.bin_start_date_time >= in_interval_start_date_time
AND edr_cls_by_tawt_report_data.bin_start_date_time < in_interval_end_date_time
AND edr_cls_by_tawt_report_data.group_weight >= in_axle_wt_min
AND edr_cls_by_tawt_report_data.group_weight < in_axle_wt_max
AND edr_cls_by_tawt_report_data.vehicle_class >= in_class_min
AND edr_cls_by_tawt_report_data.vehicle_class <= in_class_max
RETURN my_count_result;
END;
FUNCTION get_row_class_counts_text
RETURN VARCHAR2
IS
my_row_counts_text VARCHAR2(10000);
my_row_counts_entry VARCHAR2(10000);
CURSOR row_counts_text IS
SELECT 'edr_rpt_class_by_tawt_package.class_count('
||'lane_id, '
||'direction_id, '
||'interval_start_date_time, '
||'interval_end_date_time, '
||'range_low, '
||'range_high, '
|| class_id || ', '
|| class_id || ') "'|| class_id || '"'
FROM edr_rpt_tmp_report_classes
ORDER BY class_id;
BEGIN
my_row_counts_text := '';
my_row_counts_entry := '';
-- generate the speed ranges function calls
OPEN row_counts_text;
LOOP
FETCH row_counts_text INTO my_row_counts_entry;
EXIT WHEN row_counts_text%NOTFOUND;
my_row_counts_text := my_row_counts_text || ', ' || my_row_counts_entry;
END LOOP;
CLOSE row_counts_text;
RETURN my_row_counts_text;
END;
FUNCTION get_row_totals_text
RETURN VARCHAR2
IS
my_row_count_total_text VARCHAR2(10000);
BEGIN
my_row_count_total_text := '';
-- generate the 'total' column function call
SELECT 'edr_rpt_class_by_tawt_package.class_count('
||'lane_id, '
||'direction_id, '
||'interval_start_date_time, '
||'interval_end_date_time, '
||'range_low, '
||'range_high, '
|| MIN(class_id) || ', '
|| MAX(class_id) || ') " "'
INTO my_row_count_total_text
FROM edr_rpt_tmp_report_classes;
RETURN ', ' || my_row_count_total_text;
END;
PROCEDURE apply_default_awt_ranges(in_report_parameter_id IN NUMBER)
IS
my_awt_ranges_count NUMBER(4);
BEGIN
SELECT nvl(count(1),0)
INTO my_awt_ranges_count
FROM report_range_parameters
WHERE REPORT_PARAMETER_ID = in_report_parameter_id
AND REPORT_PARAMETER_GROUP = 'AXLE_GROUP'
AND REPORT_PARAMETER_NAME = 'AXLE_NAME';
IF ( my_awt_ranges_count = 0 )
THEN
INSERT INTO report_range_parameters (REPORT_PARAMETER_ID, REPORT_PARAMETER_GROUP, REPORT_PARAMETER_NAME, REPORT_PARAMETER_MIN_VALUE, REPORT_PARAMETER_MAX_VALUE)
VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '0', '2');
VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '30', '32');
END IF;
END;
PROCEDURE edr_class_by_tawt_use_per_veh
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
in_good_status_mask IN NUMBER
IS
max_axle_group_value NUMBER(12);
BEGIN
DELETE FROM edr_cls_by_tawt_report_data;
COMMIT;
INSERT INTO edr_cls_by_tawt_report_data
site_id,
site_lane_id,
site_direction_id,
site_direction_name,
bin_start_date_time,
group_weight,
bin_id,
bin_value
SELECT site_id,
site_lane_id,
site_direction_id,
site_direction_name,
date_time,
group_weight,
vehicle_class,
COUNT(vehicle_class)
FROM
SELECT edr_cls_by_tawt_per_veh_data.*
FROM edr_cls_by_tawt_per_veh_data
GROUP BY date_time,
site_lane_id,
group_weight,
vehicle_class,
site_id,
site_direction_id,
site_direction_name;
END edr_class_by_tawt_use_per_veh;
PROCEDURE edr_class_by_tawt_data_type
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
in_good_status_mask IN NUMBER,
in_data_type IN VARCHAR2,
out_data_type_used OUT VARCHAR2
IS
my_bin_entry_count NUMBER(12,0);
my_veh_entry_count NUMBER(12,0);
BEGIN
IF(UPPER(in_data_type) = 'BINNED') THEN
-- Axle information can only be read from Per Vehicle data records
-- - using bins-only is not a supported option
RAISE_APPLICATION_ERROR(-20101,'Binned data cannot be used for this report.');
ELSIF (UPPER(in_data_type) = 'PERVEHICLE')
OR (UPPER(in_data_type) = 'COMBINED')
THEN
out_data_type_used := 'Per Vehicle (All Vehicles)';
edr_class_by_tawt_use_per_veh( in_report_parameter_id, in_good_status_mask );
ELSE
RAISE_APPLICATION_ERROR(-20101,'The data type specified is not recognized.');
END IF;
END edr_class_by_tawt_data_type;
PROCEDURE edr_class_by_tawt_get_veh_data
in_report_parameter_id IN NUMBER,
in_site_id IN NUMBER,
in_start_date_time IN TIMESTAMP,
in_end_date_time IN TIMESTAMP,
in_report_level_min IN NUMBER,
in_report_level_max IN NUMBER
IS
BEGIN
DELETE FROM edr_cls_by_tawt_per_veh_data;
INSERT INTO edr_cls_by_tawt_per_veh_data
site_id,
site_lane_id,
site_direction_id,
site_direction_name,
record_id,
date_time,
group_weight,
vehicle_class,
group_number,
vehicle_status,
vehicle_error_count,
axle_violations_count,
group_type
SELECT axle_info.site_id,
axle_info.site_lane_id,
axle_info.site_direction_id,
axle_info.site_direction_name,
axle_info.record_id,
axle_info.datetime,
axle_info.group_weight,
axle_info.v_class,
axle_info.group_number,
NVL((SELECT SUM(status_code)
FROM traffic_status
WHERE traffic_status.record_id = axle_info.record_id), 0) vehicle_status,
NVL((SELECT COUNT(error_code)
FROM traffic_error
WHERE traffic_error.record_id = axle_info.record_id), 0) vehicle_error_count,
NVL((SELECT COUNT(1)
FROM axle_weight_violation
WHERE axle_weight_violation.record_id = axle_info.record_id), 0) axle_violations_count,
axle_info.group_type
FROM (SELECT site_to_data_source_lane_v.site_id,
site_to_data_source_lane_v.site_lane_id,
site_to_data_source_lane_v.site_direction_id,
site_to_data_source_lane_v.site_direction_name,
traffic_record.record_id,
traffic_record.datetime,
NVL(traffic_class.v_class, 0) v_class,
NVL(axle_class.group_type, 0) group_type,
NVL(axle_class.group_number, 0) group_number,
NVL(TRUNC(sum(convert_units(axle.weight_unit_id,
c_kips_conversion_unit_id,
axle.axle_weight
0
) group_weight
FROM traffic_record
JOIN site_to_data_source_lane_v
ON traffic_record.data_source_id = site_to_data_source_lane_v.data_source_id
AND traffic_record.lane = site_to_data_source_lane_v.data_source_lane_id
GROUP BY site_to_data_source_lane_v.site_id,
site_to_data_source_lane_v.site_lane_id,
site_to_data_source_lane_v.site_direction_id,
site_to_data_source_lane_v.site_direction_name,
traffic_record.record_id,
traffic_record.datetime,
traffic_class.v_class,
axle_class.group_type,
axle_class.group_number
) axle_info
END edr_class_by_tawt_get_veh_data;
PROCEDURE gen_class_by_axle_type
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
apply_default_awt_ranges(in_report_parameter_id);
my_date_format_mask := edr_rpt_generic_package.edr_rpt_get_date_format_mask(in_report_parameter_id);
my_start_date_time := edr_rpt_generic_package.edr_rpt_get_start_date_time(in_report_parameter_id, my_date_format_mask);
my_end_date_time := edr_rpt_generic_package.edr_rpt_get_end_date_time(in_report_parameter_id, my_date_format_mask);
my_lane_grouping := edr_rpt_generic_package.edr_rpt_get_lane_grouping(in_report_parameter_id);
my_site_id := edr_rpt_generic_package.edr_rpt_get_site_id(in_report_parameter_id);
my_selected_data_type := edr_rpt_generic_package.edr_rpt_get_data_type(in_report_parameter_id);
-- ensure selected classes and lanes temp tables have been populated
edr_rpt_generic_package.edr_rpt_gen_tmp_lanes(in_report_parameter_id);
edr_rpt_generic_package.edr_rpt_gen_tmp_classes(in_report_parameter_id);
edr_rpt_generic_package.edr_rpt_gen_tmp_speed_ranges(in_report_parameter_id);
my_good_weight_statuses_mask := edr_rpt_generic_package.get_good_weight_status_mask(in_report_parameter_id);
edr_rpt_generic_package.edr_rpt_gen_inclusion_table
in_report_parameter_id,
my_date_format_mask,
my_start_date_time,
my_end_date_time
edr_rpt_generic_package.edr_rpt_gen_grouping_table
in_report_parameter_id,
my_date_format_mask,
my_start_date_time,
my_end_date_time
edr_class_by_tawt_get_veh_data
in_report_parameter_id,
my_site_id,
my_start_date_time,
my_end_date_time,
0, --Hardcoded until reclassification is supported.
0 --Hardcoded until reclassification is supported.
edr_class_by_tawt_data_type
in_report_parameter_id,
my_good_weight_statuses_mask,
my_selected_data_type,
my_used_data_type
edr_rpt_generic_package.gen_rpt_by_ranges_output_table
in_report_parameter_id,
'AXLE_GROUP',
'AXLE_NAME'
COMMIT;
my_report_data_statement :=
' SELECT rank "Rank", '
|| ' row_type "Row Type", '
|| ' interval_start_date_time "Date", '
|| ' interval_start_date_time, '
|| ' range_label "Chart X-Axis", '
|| ' lane_id "Group Id" , '
|| ' ''None'' "Group Name", '
|| ' range_label "Speed (mph)" '
|| get_row_class_counts_text
|| get_row_totals_text
|| ' FROM edr_rpt_by_ranges_output '
|| ' ORDER BY lane_id, '
|| ' direction_id, '
|| ' interval_start_date_time, '
|| ' range_high, '
|| ' rank, '
|| ' range_low'
dbms_output.put_line('SQL start------------------------');
dbms_output.put_line(my_report_data_statement);
dbms_output.put_line('SQL end--------------------------');
my_chart_data_statement :=
' SELECT range_low "X Axis", '
|| ' lane_id "Group" '
|| get_row_class_counts_text
|| ' FROM '
|| ' ( '
|| ' SELECT lane_id, '
|| ' direction_id, '
|| ' range_low, '
|| ' range_high, '
|| ' min(interval_start_date_time) interval_start_date_time, '
|| ' max(interval_end_date_time) interval_end_date_time '
|| ' FROM edr_rpt_by_ranges_output '
|| ' WHERE rank = 1 '
|| ' GROUP BY lane_id, direction_id, range_low, range_high '
|| ' ) '
|| ' order by "Group", range_low '
dbms_output.put_line('SQL start------------------------');
dbms_output.put_line(my_chart_data_statement);
dbms_output.put_line('SQL end--------------------------');
SELECT my_used_data_type
INTO my_data_type_used
FROM SYS.DUAL;
SELECT NVL(COUNT(DISTINCT record_id), 0)
INTO my_per_vehicle_total
FROM edr_cls_by_tawt_per_veh_data;
SELECT NVL(COUNT(DISTINCT record_id), 0)
INTO my_status_vehicle_total
FROM edr_cls_by_tawt_per_veh_data
WHERE vehicle_status > 0
AND vehicle_error_count = 0;
SELECT NVL(COUNT(DISTINCT record_id), 0)
INTO my_error_vehicle_total
FROM edr_cls_by_tawt_per_veh_data
WHERE vehicle_error_count > 0;
SELECT NVL(COUNT(DISTINCT record_id), 0)
INTO my_status_clear_total
FROM edr_cls_by_tawt_per_veh_data
WHERE vehicle_status = 0
AND vehicle_error_count = 0;
SELECT NVL(COUNT(1), 0)
INTO my_binned_vehicle_total
FROM edr_cls_by_tawt_per_veh_data;
SELECT NVL(COUNT(1), 0)
INTO my_good_weight_total
FROM edr_cls_by_tawt_per_veh_data
WHERE vehicle_error_count = 0
AND BITAND(vehicle_status, my_good_weight_statuses_mask) = 0;
-- insert vehicle totals into the temporary table
DELETE FROM edr_rpt_tmp_veh_totals_table;
INSERT INTO edr_rpt_tmp_veh_totals_table
SELECT my_data_type_used,
my_per_vehicle_total,
my_binned_vehicle_total,
my_error_vehicle_total,
my_status_vehicle_total,
my_good_weight_total,
my_status_clear_total
FROM SYS.DUAL;
-- execute the query into the output refcursor
OPEN report_data FOR
my_report_data_statement;
OPEN chart_data FOR
my_chart_data_statement;
OPEN footer_data FOR
SELECT data_type_used,
per_vehicle_total,
binned_vehicle_total,
error_vehicle_total,
status_vehicle_total,
good_weight_total,
status_clear_total
FROM edr_rpt_tmp_veh_totals_table;
END gen_class_by_axle_type;
PROCEDURE edr_rpt_gen_class_by_sawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
v_report_axle_group_type := c_axle_single_group_type;
gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
END;
PROCEDURE edr_rpt_gen_class_by_fawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
v_report_axle_group_type := c_front_axle_only ;
gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
END;
PROCEDURE edr_rpt_gen_class_by_tawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
v_report_axle_group_type := c_axle_tandem_group_type;
gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
END;
PROCEDURE edr_rpt_gen_class_by_triawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
v_report_axle_group_type := c_axle_tridem_group_type;
gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
END;
PROCEDURE edr_rpt_gen_class_by_qawt (
in_report_parameter_id IN report_tasks.report_task_id%TYPE,
report_data OUT SYS_REFCURSOR,
chart_data OUT SYS_REFCURSOR,
footer_data OUT SYS_REFCURSOR
AS
BEGIN
v_report_axle_group_type := c_axle_quadrem_group_type;
gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
END;
END edr_rpt_class_by_tawt_package;
LIST
SHOW ERRORHi,
PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
without its specificationThis error usually indicates an issue with used datatypes in a package spec. that differs from a package body.
Check your spec:
FUNCTION class_count
in_lane_id edr_rpt_by_ranges_output.lane_id%TYPE,
in_direction_id edr_rpt_by_ranges_output.direction_id%TYPE,
in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_interval_end_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_axle_wt_min edr_cls_by_tawt_report_data.group_weight%TYPE,
iin_axle_wt_max edr_cls_by_tawt_report_data.group_weight%TYPE,
in_class_min edr_cls_by_tawt_report_data.vehicle_class%TYPE,
in_class_max edr_cls_by_tawt_report_data.vehicle_class%TYPE
RETURN VARCHAR2; However in your package body:
FUNCTION class_count
in_lane_id edr_rpt_by_ranges_output.lane_id%TYPE,
in_direction_id edr_rpt_by_ranges_output.direction_id%TYPE,
in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_interval_end_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_axle_wt_min edr_cls_by_tawt_report_data.group_weight%TYPE,
in_axle_wt_max edr_cls_by_tawt_report_data.group_weight%TYPE,
in_class_min edr_cls_by_tawt_report_data.vehicle_class%TYPE,
in_class_max edr_cls_by_tawt_report_data.vehicle_class%TYPE
RETURN NUMBERReturn number in spec. vs. return varchar2 in body..
That won't compile, either return a number or a varchar2 in both. (spec and body). -
How to Compile java project on command prompt
Hello Friends,
I have created one java project in eclipse. It has 3 packages, 4 external jars and one Link source (meaning it uses other java package that is not in the same project folder)
It runs perfectly using eclipse.
Now I want to compile my project and want to run that project.
I tried using "javac -classpath........." but it didn't work for me. Here is the command I used:
I am running this command under my main project folder
javac -classpath ./../../../lib/tools/lib/blur/blur_formats-1.0.jar;./../lib/commons-codec/commons-codec-1.3.jar;./../lib/commons-httpclient/commons-httpclient-3.1.jar;./../lib/commons-logging/commons-logging-1.1.1.jar;./../lib/org.json/org.json.jar;./../lib/smack/3_0_4/smack.jar;./../../../device/branches/viper/Service/blur/common/push/src* ./src/com.proj.hnm.push.StartService.java*
1) /device/branches/viper/Service/blur/common/push/src - is a different package I am referring (not in my current project folder) - it has java files in com.pushsync package
2) ./src/com.proj.hnm.push.StartService.java is my main class, com.proj.hnm package also contains another 2 package, and those other packages also have .java files
Please tell me how do I run my java project?
ThanksHi
Since it works fine in Eclipse you should install the [Fat Jar eclipse plugin|http://fjep.sourceforge.net/] which will pack everything thats in your eclipse project into a single jar file. Then you can run: java -jar myProject.jar and it should work. -
Cannot Compile. Pls. help!
I cannot compile the following program which calls for another 6 class files from its code. Please note the main program (DiveLog.java)+the other 6 class files are stored in the same directory.
And also as this involves "package" I tried to compile it as "javac -classpath DiveLog.jav". But I still get the 'cannot resolve symbol' error messages.
DiveLog.java (Main Program)
package DiveLog;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DiveLog
private JFrame dlframe; //Not assigned yet.
private JTabbedPane tabbedPane; //Not assigned yet.
//Begins Constructor
public DiveLog()
// Create a frame object to add the application GUI components to.
dlframe = new JFrame("A Java(TM) Technology Dive Log");
// Closes from title bar and from menu
dlframe.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
// Tabbed pane with panels for Jcomponents
// Instantiate JTabbedPane with keyword new
tabbedPane = new JTabbedPane(SwingConstants.LEFT);
// Calls method to set color
tabbedPane.setBackground(Color.blue);
tabbedPane.setForeground(Color.white);
populateTabbedPane();
//Calls the method that builds the menu
buildMenu();
dlframe.getContentPane().add(tabbedPane);
dlframe.pack();
dlframe.setSize(765, 690);
dlframe.setBackground(Color.white);
dlframe.setVisible(true);
}// Ends Constructor
private void populateTabbedPane()
// Create tabs with titles
tabbedPane.addTab("Welcome", null, new Welcome(), "Welcome to the Dive Log");
tabbedPane.addTab("Diver Data", null, new Diver(), "Click here to enter diver data");
tabbedPane.addTab("Log Dives", null, new Dives(),
"Click here to enter dives");
tabbedPane.addTab("Statistics", null, new Statistics(),
"Click here to calculate" + " dive statistics");
tabbedPane.addTab("Favorite Web Site", null, new Website(),
"Click here to see a web site");
tabbedPane.addTab("Resources", null, new Resources(),
"Click here to see a list of resources");
} //Ends populateTabbedPane method
// Method header
private void buildMenu()
// Instantiates JMenuBar, JMenu,
// and JMenuItem.
JMenuBar mb = new JMenuBar();
JMenu menu = new JMenu("File");
JMenuItem item = new JMenuItem("Exit");
//Closes the application from the Exit menu item.
item.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
System.exit(0);
} // Closes actionPerformed method
}); // Closes addActionListener method
//Adds the item to the menu object
menu.add(item);
//Adds the menu object with item onto the menu bar
mb.add(menu);
//Sets the menu bar in the frame
dlframe.setJMenuBar(mb);
} //Ends buildMenu method
public static void main(String[] args)
DiveLog dl = new DiveLog();
} //Ends Class
===========================================
Welcome.class (one of the 6 class files.The other 5 are identical to this.)
package divelog;
* This class creates the content on the
* Welcome tabbed pane in the Dive Log
* application.
* @version 1.0
//import for buttons, labels, and images
import javax.swing.*;
//import for layout manager
import java.awt.*;
public class Welcome extends JPanel
{ //Opens class
}//Closes class
=========================================================Might be a typo when you posted, but your DiveLog class is in package DiveLog, whereas your Welcome class is in package divelog (note the capitalization differences).
And even though they're in the same package, i'm always a fan of importing all the files you're going to need explicitly, such as
import divelog.Welcome
this applies to using the wildcard character too (as in, you shouldn't) to import files. Explicitly listing all imports allows you, and any other developer, to quickly see a list of all classes used. -
Cannot compile body of dbms_utility without its specification
hi there!
I just got this error on my 11g EE database
yesterday had power problems, and the backup batery did not work(but it happens very often)
today, trying to send email with a job, i realized through TOAD that sys has 304 invalid objects.
Try to compile and it seems something missing.
"cannot compile body of dbms_utility without its specification"
I cant find that specification and no forums found related to this.
need help from experts..
S.O. Oracle enterprise linux 4.7
D.B. Oracle Enterprise 11.2
thanks!Virendra, thanks for your time, this is the output
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> ALTER PACKAGE SYS.DBMS_UTILITY COMPILE;
show errors
ALTER PACKAGE SYS.DBMS_UTILITY COMPILE BODY;
show errors
Warning: Package altered with compilation errors.
SQL> Errors for PACKAGE SYS.DBMS_UTILITY:
LINE/COL ERROR
262/75 PLS-00103: Encountered the symbol "end-of-file" when expecting
one of the following:
end function pragma procedure subtype type <an identifier>
<a double-quoted delimited-identifier> current cursor delete
exists prior
SQL>
Warning: Package Body altered with compilation errors.
SQL>
Maybe you are looking for
-
I'm doing a mock up website using Illustrator, and wanting insert hyperlinks to sub pages (also done in Illustrator). It this possible? If so how? I'm not an expert with the program so any advice will be appreciated Richard
-
How can I obtain a summary report from webi through counts and sum
I have a report built from webi. But will like to count the report by different categories.
-
DVD buttons work in preview but completely different on DVD
Just finished a big project, everything seemed to work fine, made a couple of additions and everything checked out, all the buttons activated the correct video segment from the chapter markers on the timeline that I exported from PP, but when I play
-
Problem with Top Sites in Safari 8
After upgrading to OS X Yosemite I experience a problem with my Top Sites. I add a website to my Top Sites, mark it as permanent by clicking the blue pin - so far, so good. But once I quit Safari and re-open it, the marked Top Site is not shown anymo
-
Applications and system buttons have dissappeared from desktop-how can I get them back?
These buttons moved to a vertical position on the left edge of the screen, then the applications and system buttons disappeared,so I am unable to access the word processor. I need some advice as to how to reset the system so that these items are perm