LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2007, 01:26 PM   #1
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
ISO C++ make errors and CMake generated Makefile


Alright - I'll be the first to admit that I'm not much of a programmer. I should be better, but it just hasn't sunken in. That being said -

I've recently started to look around the forums for a Windows media player called MusikCube. It's just awesome. I've also recently found out that they are running short on developers. After browsing for a while I found that there was a GTK/Linux counterpart of MusikCube called (Aptly enough) MusikBox, and that it needed some hacking on to become easily usable. I thought I could tackle it, but I've run into an issue.

The makefile for the first part of the program is generated by CMake, which I'm not entirely familiar with. I've managed to get cmake to make a makefile (Alliteration!) but upon attempting to 'make' said makefile, I get an error message that states:

error:ISO C++ does not support variable type 'long-long'

This, of course, makes the build fail. I did some googling and found that I apparently need to append the -Wno-long-long switch to something- I assume g++, but I'm not sure how to or even if my assumption is correct.

I've attempted to place the switch in the Makefile on the line mentioned in the error, but to no avail. I'm sorry that I can't give the exact error right now, but I will post when I can (In just a few hours.)

Anyone have any ideas how I might fix this?
Thanks for your time!
 
Old 04-15-2007, 05:19 PM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
try compiling with
Quote:
-std=c++99
C++99 may not be implemnted in your g++ version,if not try -std=c++98
 
Old 04-15-2007, 06:48 PM   #3
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Original Poster
Rep: Reputation: 30
The problem is not that the switch isn't working, but that I don't have any idea where to place it.

I'm sure that either of those suggestions would work fine - but I can't figure out where to place the switch. I have attempted to place it inside the Makefile (The one generated by CMake.) but I cannot seem to find the correct placement. The line looks something like this:

$(MAKE) -f /path/to/file/here.cpp

If I'm not mistaken, the $(MAKE) variable is a link to my compiler, and the -f et all is the switch to it. However, I've tried placing the -Wno-long-long switch both in front of the '-f' and after the end of the statement, but to no avail. I'll reboot and try your suggestion though.

One more question:
would compiling the file on my own (without using the Makefile - but only compiling that file without using the Makefile.) work?

I know that I probably sound like an idiot here, asking such simple questions - but I cannot find a reference online (at least one that says something I don't already know.) Thanks again for your time.
 
  


Reply

Tags
cmake, mediaplayer


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
Belkin Wirless G RTL8185L make[1]: *** No rule to make target `Makefile'. Stop. SilverRock Linux - Wireless Networking 2 02-11-2007 07:25 AM
Makefile errors for webcam drivers Mr Smokin Joe Linux - Hardware 0 04-18-2005 07:57 PM
beginners problem: autotools' generated makefile not doing anything sterrenkijker Programming 2 03-31-2005 02:14 PM
Kdevelop Makefile Errors Chryzmo Linux - Software 3 02-11-2004 04:17 PM
Redhat 9: Where find errors generated from rc.local ? speedgelb Linux - General 4 01-30-2004 07:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:14 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
Open Source Consulting | Domain Registration