Category : gn

I’m developing new features for an old version of Google Chrome (71.0.3578.141). In the file src/content/browser/devtools/protocol/page_handler.cc, I need to add the following includes: src/content/browser/devtools/protocol/page_handler.cc: #include "chrome/browser/ui/browser_list.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_window.h" When I execute gn check out/Default, the output is: ERROR at //content/browser/devtools/protocol/page_handler.cc:8:11: Include not allowed. #include "chrome/browser/ui/browser_list.h" ^——————————- It is not in any dependency of ..

Read more

I am trying to create an application in which I am using gn. I tried creating the .exe file with the following command. gn gen out –ide=vs ninja -C out Then, I opened the generated solution file and tried building it, but I am getting an error which says MSB3073 The command "call ninja.exe -C ..

Read more

I am calling a function which outputs a wide character in the output stream. Consider:- wcout<<GetOutput(); and the definition of function is like this:- const wchar_t* GetOutput() { std::wstringstream stringStream; stringStream << out_name << " " << out_type << out_subtype; wchar_t* check = new wchar_t[stringStream.str().length() + 1]; wcscpy(check, stringStream.str().c_str()); return check; } Now, when this ..

Read more

I have a project in which I have the following functions are being defined:- Add.cpp #include "pch.h" #include "framework.h" #include "add.h" #include<iostream> void A::add1(int a,int b) { std::cout<<"The value of A is "<<a<<" and the value of B is"<<b<<" and thier sum is"<<a+b<<std::endl; } Sub.cpp #include "pch.h" #include "framework.h" #include "sub.h" #include<iostream> void check::sub1(int a,int ..

Read more

I am working on a project that is written is VScode and is working properly. But when I am trying to execute the same on gn(generate ninja), this the error I am getting:- error: no member named ‘GetLength’ in ‘std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>’ int sz = string.GetLength(); I am not sure what is wrong here. Any ..

Read more

I am currently using gn to create ninja files for my project but a .pdb file is required for debugging purpose(for visual studio) and I don’t have any idea on how to create it. I have searched upon various sources but with no luck finding it. Can anyone help in providing any method as to ..

Read more

I am getting this error while Creating Exectuable file:- [1/2] clang++ -shared -o ./SampleDll_check.dll @SampleDll_check.dll.rsp FAILED: SampleDll_check.dll SampleDll_check.lib clang++ -shared -o ./SampleDll_check.dll @SampleDll_check.dll.rsp clang++: error: no input files ninja: build stopped: subcommand failed. Please provide any hint where am i wrong? Source: Windows..

Read more