Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:44:54+00:00 2026-05-23T14:44:54+00:00

(extremely) inexperienced in C++ but I’ve been getting along ok until now and this

  • 0

(extremely) inexperienced in C++ but I’ve been getting along ok until now and this has me stumped. I’m unsure if I’ve included enough code to diagnose this but I believe it’s syntax and might be figured out from the following. I’m getting the error mentioned from the line below:

#pragma once
#include "cinder/Vector.h"
#include "cinder/Color.h"
#include <vector>

class Predator {
public:
    Predator();
    Predator( ci::Vec3f pos, ci::Vec3f vel );
    void pullToCenter( const ci::Vec3f &center );
    void update( bool flatten, const ci::Channel32f &channel ); // <- error's here
    void limitSpeed();
    void draw();
    void drawTail();
    void addNeighborPos( ci::Vec3f pos );

And can’t spot anything wrong? I’ve googled the error and it usually seems syntax related but can’t see how it relates here. The line giving trouble is actually used in a previous class and doesn’t throw any errors. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:44:54+00:00Added an answer on May 23, 2026 at 2:44 pm

    Try adding

    #include "cinder/Channel.h"
    

    http://libcinder.org/docs/v0.8.2/_channel_8h.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be an extremely easy question but I can't get my head around
This seems to be extremely simple, but if I've got a mental block. I
Extremely sorry for this question, but what do I need to install on my
This looks like an extremely silly question even to me, but anyway, I'm curious:
The question is extremely easy, but the solution might not. Let's say this is
I am extremely new to json and have been working on this issue for
This is extremely simple but I am wondering why people write this? div#some_id You
This question may seem extremely noob-ish, I apologize. I've been periodically attempting for the
This seems like an extremely easy problem but alas I cannot figure it out
Edit : Of the several extremely generous and helpful responses this question has already

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.