« first day (2149 days earlier)      last day (1968 days later) » 

 
1 hour later…
 
2 hours later…
5:57 AM
18 messages moved from GMTs
 
 
4 hours later…
10:28 AM
String calendarId = getSharedPrefCalendarId();
static Context mContext;
public void getContext(Context context) {
this.mContext = context;
}

public String getSharedPrefCalendarId(){
SharedPreferences sharedPreferences = mContext.getSharedPreferences(SHARED_PREF_FILENAME,
Context.MODE_PRIVATE);

return sharedPreferences.getString(SHARED_CALENDAR_ID,"");
}
 
1 message moved from Android
 
@Queen k
 
 
1 hour later…
 
2 hours later…
4:05 PM
 public int getCategoryComponentAmount(long catID)
        {
            rackVM.getComponentRepository().getComponentCatAmount(catID).observe(this, amount ->
            {
                return rackVM.getComponentRepository().getComponentCatAmount(catID);
            });
        }
 
1 message moved from Android
 
 
2 hours later…
 
1 hour later…
6:54 PM
Hey. I'm having an issue where with a function getViewer(). This is the error

`symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1`

and heres my code

-------------------------------------

// SmoothWaveForm.h
#pragma once

class SmoothWaveForm
: public SynthesiserSound
{
public:
SmoothWaveForm() {}

void setSymmetry(int new_symmetry);

bool appliesToNote (int midiNoteNumber) {
return true;
}

bool appliesToChannel (int midiChannel) {
return true;
Whatever I'm doing wrong, it's probably a big giant obvious mistake having to do with me now knowing the syntax yet.
Does anything stand out super quick as that?
 
7:15 PM
3 messages moved from Lounge<C++>
 
 
1 hour later…
9:52 PM
Would one of you be willing to verify that I'm not missing some blatant syntax thing here? I'm trying to do something that should seemingly be very simple, pretty much just creating a .h and .cpp file, but linking appears to be broken. Here's my files:
// A .h file

class SmoothWaveForm
: public SynthesiserSound
{
public:
SmoothWaveForm() {}
void setSymmetry(int new_symmetry);
}
---------------------------
// A .cpp file
#include "SmoothWaveForm.h"
#include "SmoothWaveViewer.h"

void SmoothWaveForm::setSymmetry(int new_symmetry) {
symmetry = new_symmetry;
}
----------------
I feel like I must be crazy, this seems like it should work. But I'm not comfortable enough with the syntax to feel like it's a larger issue
----
The error is:
Undefined symbols for architecture x86_64:
"SmoothWaveForm::setSymmetry(int)", referenced from:
 
nope
But it does mean that you're not allowed to cast its constness away.
 
Thanks for the link.
Ah man. Nobody has been there in over a day.
I really don't mean to bother you, but it shouldn't take more than a second. I'm not crazy, that's normal syntax right?
 
nwp
Nobody has asked a question in over a day because all questions were answered. There is always someone there.
 
10:08 PM
Thank you. Nwp was very kind and moved over to the C++ Q&A channel to help me. I had thought the intent was... worse, and I apologize for that.
 
10:55 PM
13 messages moved from Lounge<C++>
 

« first day (2149 days earlier)      last day (1968 days later) »