Questions tagged [definitions]

84 questions
2
votes
1 answer

jQuery Cycle with defined pager links

I built a player using cycle that cycles through various promos but I want to define the specific descriptive pager links for each page (other than 1,2,3, etc.) I know this should be possible but cannot figure out how... Even when I have added…
2
votes
1 answer

Modular programming C++ multiple definitions

Whenever I try to run the following code, it says multiple definition of fin, client1, client2 and client3. Ive search throughout the internet but it seems I cant solve it by myself.Also, theres no problem with the code as I can easily run it if…
Gusti
  • 71
  • 2
  • 11
1
vote
5 answers

In object-oriented programming, is the object part of the method call?

For example, imagine I have an object defined like so: public class Example { public void doSomething() { // does something } } If I wanted to call doSomething, I'd need an instance of Example: Example foo = new…
Bhaxy
  • 5,346
  • 10
  • 39
  • 41
1
vote
1 answer

Error in WSDL: the document is not a definitions document element

I get the following error in my wsdl: The document is not a definitions@http://schemas.xmlsoap.org/wsdl/: document element namespace mismatch expected "http://schemas.xmlsoap.org/wsdl/" got "" Does anyone have a clue? Thanks in advance, Emma
1
vote
0 answers

Typescript Definition File Creation

I am attempting to write a typescript definition file for a js library. The library exports the following item: const Joi = require('joi'); module.exports = { Joi }; Joi is a popular library and already has types defined.…
1
vote
1 answer

Java varargs - why are these unacceptable syntax?

I had this practice test question for my OCAJP8 exam preparation. Can someone please explain why the 'Wrong' ones are wrong? Thanks. Which of the following compile? Response Wrong public void moreD(String... values, int... nums) {} Wrong …
1
vote
1 answer

how to write method definition for the Product* getProductFromID(std::string);

Please tell me how to write definitions for the functions: Product* getProductFromID(std::string); void Store:: addMember(Customer* c) addmember shud add the member details to the vector named cart and i have tried something like this void Store::…
1
vote
0 answers

Automating SQL Server documentation - stored procedure return table definition

I am currently looking at automating my SQL Server documentation. In particular documentation for stored procedures. I can get the list of input parameters from the sys.parameters but I'm stuck on the output. As a simplification the contents of a…
Matthew Baker
  • 2,637
  • 4
  • 24
  • 49
1
vote
2 answers

Typescript: Overriding / extending Lib.d.ts with preexisting identifer

I need to get typescript to stop complaining about my code. It runs fine in the browser but fullscreen api are not official yet so typescript definitions aren't up to date. I am calling document.documentElement.msRequestFullscreen. This causes type…
TetraDev
  • 16,074
  • 6
  • 60
  • 61
1
vote
2 answers

C Collect2 Multiple Definition Error

I am writing a driver for FRAM for a robot, and all of a sudden I started getting this error: C:\Users\james\AppData\Local\Temp\cciezvMm.o: In function `_FRAM_driver_setup': (.text+0x0): multiple definition of…
James Mchugh
  • 994
  • 8
  • 26
1
vote
1 answer

Need help about recursive definition for two languages S* and T* where S={aa,b} and T={w1,w2,w3,w4}

I am currently taking a course of Theory of Automata and i came up with following problems. I came up with the answer of 1st one but confused about the statement of 2nd question. (i) Give a recursive definition for the language S* where S = {aa,b}.…
1
vote
1 answer

Missing definitions MVC Views Visual Studio Intellisense

I have a Github project which is an ASP.NET MVC website. There's no trouble in pulling and running the project now. However when coding I get all sorts of errors with e.g: @ViewBag @Html.LabelFor @Scripts Errors: The name 'Scrips/ViewBag' does not…
1
vote
2 answers

How to define a CMake macro in terms of another one?

How to define a CMake macro in terms of another one? add_definitions(-DMACRO1=1) add_definitions(-DMACRO2=2) add_definitions(-DMACRO3=${MACRO1}) # no effect message( "COMPILE_DEFINITIONS = ${DirDefs}" ) This is the output I would…
Pietro
  • 12,086
  • 26
  • 100
  • 193
1
vote
3 answers

Generating a single definition file from a external module typescript project

Having a multi file typescript project, using external modules. If I compile with tsc -d init.ts -m "commonjs" Then all the files of the project get their own .d.ts file. But I would like to generate one single .d.ts file for the whole…
Flion
  • 10,468
  • 13
  • 48
  • 68
1
vote
1 answer

Multiple Definitions: Stumped

I have a simple program using FreeGLUT, OpenGL, and some nice simplex noise functions from Eliot Eshelman. The goal is to display 2D slices some 3D simplex noise, which I've managed with SDL. My problem is: I'm getting multiple definition errors…
Willy Goat
  • 1,175
  • 2
  • 9
  • 24