LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2004, 07:32 PM   #1
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
make error: 'assert' undeclared (convex3D)


Attempting to install Convex3D, I have all the listed dependencies, configure apparently goes smoothly, but make presents me with an error about an undeclared function or command:
Code:
formatmap.cpp: In function `Container* C3D::createContainer(int, bool)':
formatmap.cpp:135: error: `assert' undeclared (first use this function)
formatmap.cpp:135: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
I don't know anything about C programming, but it looks to me like there's either a problem with the code, or I'm missing something that was not listed in INSTALL (README is an empty file).
Any ideas? Anything else I should mention?
The function in question is
Code:
Container* createContainer( int format, bool forReading )
{
        if( format==FORMAT_UNKNOWN )
                return 0;

        bool canRead = fmap[format].r;
        bool canWrite = fmap[format].w;

        if( forReading && !canRead )
                return 0;
        if( !forReading && !canWrite )
                return 0;

        switch(format)
        {
        case FORMAT_VOID:               return new ConvexFormats::Void;
        case FORMAT_BIN3DS:             return new ConvexFormats::Bin3DS;
//      case FORMAT_CFILE:              return new ConvexFormats::Cfile;
        case FORMAT_WFOBJ:              return new ConvexFormats::WavefrontOBJ;
        case FORMAT_LWO:                return new ConvexFormats::LWO;
        default:
                ; // can't be there
                assert("createContainer: passed wrong format!!!!!");
                return 0;
        }
}
 
Old 03-24-2004, 08:39 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Here's a link that may describe you problem and solution.

http://www.linux-mips.org/archives/l.../msg00006.html
 
Old 03-25-2004, 03:22 AM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Original Poster
Rep: Reputation: 45
I checked out your link, thank you. It seems that may be the opposite of my trouble. Removing assert.h didn't help, but it did give me a better idea of the problem, which is related to the assert header.
What I did to test was add '#include assert.h' to the file which produced the error, and that particular error didn't occur again. However, the same error occured with the next file that called assert. So...it looks like i need to find a way to include assert.h globally so I won't need to add it to multiple files and test the compile multiple times.

Update: There were only those 2 files which needed assert.h, and make went smoothly after that for a while.
Now there's another error (actually about 40 of them) which I don't understand...the errors themselves give little clue to their meaning:
Code:
/usr/lib/qt3/include/qlistview.h:72: error:                 
   QListViewItem::QListViewItem(QListView*)
ContainerEditor.cpp: In member function `void 
   ContainerEditor::listAddCoord(QListViewItem*, const QString&, Coord3*)':
ContainerEditor.cpp:254: error: no matching function for call to `QListViewItem
   ::QListViewItem(QListViewItem*&, const QString&, std::basic_string<char, 
   std::char_traits<char>, std::allocator<char> >)'
...and it goes on for a while with multiple similar messages.
I think in this case I'm missing something (Qlistview perhaps?), but it's getting late...I'll see if it makes any more sense tomorrow.

Last edited by mikshaw; 03-25-2004 at 03:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strange - suddenly EINTR' undeclared polrus Linux - Software 3 04-23-2005 11:03 AM
Grr... saa7146_i2c.c error : `I2C_ADAP_CLASS_TV_ANALOG' undeclared kapa SUSE / openSUSE 0 03-08-2005 02:57 AM
prelink error: `PT_GNU_STACK' undeclared vbbjq Slackware 7 08-23-2004 12:57 PM
kernel: ASSERT.... soba Linux - General 1 10-22-2003 06:51 PM
Undeclared variable in Atmel drivers? Adam Shapiro Linux - Hardware 7 02-02-2003 01:08 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration